forked from evolix/ansible-roles
Jérémy Lecour
2ed77c60f0
replace « x | changed » by « x is changed » add explicit « bool » filter use « length » filter instead of string comparison
23 lines
534 B
YAML
23 lines
534 B
YAML
---
|
|
|
|
- name: Compose minifirewall_restart_handler_name variable
|
|
set_fact:
|
|
minifirewall_restart_handler_name: "{{ minifirewall_restart_if_needed | bool | ternary('restart minifirewall', 'restart minifirewall (noop)') }}"
|
|
|
|
- include: install.yml
|
|
|
|
- include: config.yml
|
|
|
|
- include: nrpe.yml
|
|
|
|
- include: activate.yml
|
|
|
|
- include: tail.yml
|
|
when: minifirewall_tail_included | bool
|
|
|
|
- name: Force restart minifirewall
|
|
command: /bin/true
|
|
notify: restart minifirewall
|
|
changed_when: False
|
|
when: minifirewall_restart_force | bool
|