Move standalone playbooks to utils

This commit is contained in:
pgrondek 2020-05-26 00:41:41 +02:00
parent 9bc0d658cc
commit 9ccd1a79e2
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
---
- name: update date
hosts: docker_swarm
hosts: all
become_method: sudo
become_user: root
become: yes

View File

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

View File

@ -1,6 +1,6 @@
---
- name: update software
hosts: docker_swarm, iron_man
hosts: all
become_method: sudo
become_user: root
become: yes