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
17 lines
668 B
YAML
17 lines
668 B
YAML
---
|
|
- name: restart minifirewall
|
|
command: /etc/init.d/minifirewall restart
|
|
register: minifirewall_init_restart
|
|
failed_when: "'starting IPTables rules is now finish : OK' not in minifirewall_init_restart.stdout"
|
|
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
|
|
|
|
- name: 'created new jail'
|
|
command: "bkctld restart {{ evolinux_hostname }}"
|
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
|
|
|
- name: 'jail updated'
|
|
command: "bkctld restart {{ evolinux_hostname }}"
|
|
# - "bkctld sync {{ evolinux_hostname }}"
|
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
|
when: evobackup_client__hosts | length > 1
|