forked from evolix/ansible-roles
bkctld restart works better than bkctld start
a simple start will fail if the jail is already started, there is potential for a race condition.
This commit is contained in:
parent
5178e99e7c
commit
0b4095d8dd
|
@ -6,10 +6,10 @@
|
||||||
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
|
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
|
||||||
|
|
||||||
- name: 'created new jail'
|
- name: 'created new jail'
|
||||||
command: "bkctld start {{ evolinux_hostname }}"
|
command: "bkctld restart {{ evolinux_hostname }}"
|
||||||
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
||||||
|
|
||||||
- name: 'jail updated'
|
- name: 'jail updated'
|
||||||
command: "bkctld start {{ evolinux_hostname }}"
|
command: "bkctld restart {{ evolinux_hostname }}"
|
||||||
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
||||||
when: evobackup_client__hosts|length > 1
|
when: evobackup_client__hosts|length > 1
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
|
||||||
notify:
|
notify:
|
||||||
- 'created new jail'
|
- 'created new jail'
|
||||||
- 'jail updated'
|
|
||||||
tags:
|
tags:
|
||||||
- evobackup_client
|
- evobackup_client
|
||||||
- evobackup_client_jail
|
- evobackup_client_jail
|
||||||
|
|
Loading…
Reference in a new issue