add reboot playbook

This commit is contained in:
2024-11-02 03:38:02 +01:00
parent 24f8933ba3
commit 100a0ed7db
2 changed files with 14 additions and 1 deletions

13
reboot.yml Normal file
View File

@@ -0,0 +1,13 @@
- hosts: accessPoints
ignore_unreachable: true
gather_facts: false
vars:
openwrt_install_recommended_packages: no
roles:
- gekmihesg.openwrt
tasks:
- name: Reboot devices
ansible.builtin.command:
cmd: "reboot"
changed_when: false

View File

@@ -32,7 +32,7 @@
listen_interface: mgmnt listen_interface: mgmnt
listen_port: 9100 listen_port: 9100
autocommit: true autocommit: true
- name: Reboot device - name: Reboot devices
ansible.builtin.command: ansible.builtin.command:
cmd: "reboot" cmd: "reboot"
changed_when: false changed_when: false