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:
2021-05-13 10:14:57 -04:00
committed by Joshua Boniface
parent 7536732f30
commit 238449904f
3 changed files with 42 additions and 20 deletions

View File

@ -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