Move some other tasks to bootstrap role
Avoids an issue where the pvcnoded service is stopped on non-bootstrap runs.
This commit is contained in:
@ -44,3 +44,8 @@
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcnoded.service"
|
||||
ignore_errors: true
|
||||
when: bootstrap is not defined
|
||||
|
||||
- name: restart pvcapid
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcapid.service"
|
||||
ignore_errors: true
|
||||
when: bootstrap is not defined
|
||||
|
Reference in New Issue
Block a user