Move IP removal and restart after install
This commit is contained in:
parent
09dc63a7d4
commit
aa72bb9bac
|
@ -41,10 +41,6 @@
|
||||||
- include: frr/main.yml
|
- include: frr/main.yml
|
||||||
tags: pvc-frr
|
tags: pvc-frr
|
||||||
|
|
||||||
- include: common/remove_cluster_ips.yml
|
|
||||||
when: newhost is defined and newhost
|
|
||||||
# tags: always
|
|
||||||
|
|
||||||
# Install PVC sequentially
|
# Install PVC sequentially
|
||||||
- include: pvc/main.yml
|
- include: pvc/main.yml
|
||||||
tags: pvc-daemon
|
tags: pvc-daemon
|
||||||
|
@ -53,3 +49,16 @@
|
||||||
with_items: "{{ play_hosts }}"
|
with_items: "{{ play_hosts }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: play_host
|
loop_var: play_host
|
||||||
|
|
||||||
|
- include: common/remove_cluster_ips.yml
|
||||||
|
when: newhost is defined and newhost
|
||||||
|
tags: always
|
||||||
|
|
||||||
|
- name: restart server on first install
|
||||||
|
shell: 'sleep 1 && shutdown -r now "Ansible updates triggered"'
|
||||||
|
async: 1
|
||||||
|
poll: 0
|
||||||
|
ignore_errors: yes
|
||||||
|
become: yes
|
||||||
|
when: newhost is defined and newhost
|
||||||
|
tags: always
|
||||||
|
|
Loading…
Reference in New Issue