[ADD] плейбуки bootstrap, wifi-on, wifi-off, deploy, poweroff
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Штатное выключение всех узлов перед снятием питания.
|
||||
# Плейбук ждёт, пока ssh каждого узла перестанет отвечать.
|
||||
- name: Выключение узлов
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: poweroff
|
||||
become: true
|
||||
community.general.shutdown:
|
||||
delay: 0
|
||||
|
||||
- name: Узел ушёл из сети
|
||||
delegate_to: localhost
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ ansible_host }}"
|
||||
port: 22
|
||||
state: stopped
|
||||
timeout: 90
|
||||
Reference in New Issue
Block a user