Update hosts file to include skip_reboot flag for debianDesktopVM and modify reboot condition in maintenance tasks to respect skip_reboot variable.

This commit is contained in:
ilia 2025-08-26 22:59:22 -04:00
parent 4354c8fa64
commit 50503b1435
3 changed files with 4 additions and 3 deletions

2
hosts
View File

@ -10,7 +10,7 @@ homepageVM ansible_host=10.0.10.30
[dev]
devVM ansible_host=10.0.30.105 ansible_user=ladmin
bottom ansible_host=10.0.10.156 ansible_user=beast
debianDesktopVM ansible_host=10.0.10.206 ansible_user=user
debianDesktopVM ansible_host=10.0.10.206 ansible_user=user skip_reboot=true
[ansible]
ansible-controlVM ansible_host=localhost ansible_user=master

View File

@ -18,4 +18,6 @@
- name: Reboot if tasks changed things
reboot:
msg: "Reboot triggered by Ansible after system changes."
when: ansible_facts['pkg_mgr'] == "apt"
when:
- ansible_facts['pkg_mgr'] == "apt"
- skip_reboot is not defined or skip_reboot != true

View File

@ -4,4 +4,3 @@
name: "{{ ansible_user }}"
state: present
shell: /bin/bash