bkctld restart works better than bkctld start
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

a simple start will fail if the jail is already started, there is potential for a race condition.
This commit is contained in:
Patrick Marchand 2019-12-19 10:30:58 -05:00
parent 5178e99e7c
commit 0b4095d8dd
2 changed files with 2 additions and 3 deletions

View file

@ -6,10 +6,10 @@
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
- name: 'created new jail'
command: "bkctld start {{ evolinux_hostname }}"
command: "bkctld restart {{ evolinux_hostname }}"
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
- name: 'jail updated'
command: "bkctld start {{ evolinux_hostname }}"
command: "bkctld restart {{ evolinux_hostname }}"
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
when: evobackup_client__hosts|length > 1

View file

@ -8,7 +8,6 @@
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
notify:
- 'created new jail'
- 'jail updated'
tags:
- evobackup_client
- evobackup_client_jail