[ADD] плейбуки bootstrap, wifi-on, wifi-off, deploy, poweroff

This commit is contained in:
Arseny
2026-09-24 23:36:10 +03:00
parent ee291f7a26
commit c72bea1a5e
7 changed files with 175 additions and 0 deletions
+18
View File
@@ -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