Jérémy Lecour
2ed77c60f0
replace « x | changed » by « x is changed » add explicit « bool » filter use « length » filter instead of string comparison
41 lines
952 B
YAML
41 lines
952 B
YAML
---
|
|
|
|
- name: Set if MySQL should be restart (if needed) or not at all
|
|
set_fact:
|
|
mysql_restart_handler_name: "{{ mysql_restart_if_needed | bool | ternary('restart mysql', 'restart mysql (noop)') }}"
|
|
|
|
- include: packages_stretch.yml
|
|
when: ansible_distribution_major_version is version('9', '>=')
|
|
|
|
- include: packages_jessie.yml
|
|
when: ansible_distribution_release == "jessie"
|
|
|
|
- include: users_stretch.yml
|
|
when: ansible_distribution_major_version is version('9', '>=')
|
|
|
|
- include: users_jessie.yml
|
|
when: ansible_distribution_release == "jessie"
|
|
|
|
- include: config_stretch.yml
|
|
when: ansible_distribution_major_version is version('9', '>=')
|
|
|
|
- include: config_jessie.yml
|
|
when: ansible_distribution_release == "jessie"
|
|
|
|
- include: replication.yml
|
|
when: mysql_replication | bool
|
|
|
|
- include: datadir.yml
|
|
|
|
- include: logdir.yml
|
|
|
|
- include: tmpdir.yml
|
|
|
|
- include: nrpe.yml
|
|
|
|
- include: munin.yml
|
|
|
|
- include: log2mail.yml
|
|
|
|
- include: utils.yml
|