Move standalone playbooks to utils
This commit is contained in:
parent
9bc0d658cc
commit
9ccd1a79e2
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: update date
|
||||
hosts: docker_swarm
|
||||
hosts: all
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
become: yes
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: reboot nodes
|
||||
hosts: docker_swarm
|
||||
hosts: docker_cluster
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
become: yes
|
||||
@ -10,7 +10,7 @@
|
||||
- name: drain docker swarm
|
||||
shell:
|
||||
cmd: |
|
||||
docker node update {{ docker_node }} --availability drain
|
||||
docker node update {{ ansible_hostname }} --availability drain
|
||||
sleep 30
|
||||
|
||||
- name: reboot
|
||||
@ -32,5 +32,5 @@
|
||||
- name: drain docker swarm
|
||||
shell:
|
||||
cmd: |
|
||||
docker node update {{ docker_node }} --availability active
|
||||
docker node update {{ ansible_hostname }} --availability active
|
||||
sleep 30
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: update software
|
||||
hosts: docker_swarm, iron_man
|
||||
hosts: all
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user