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:
parent
4354c8fa64
commit
50503b1435
2
hosts
2
hosts
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -4,4 +4,3 @@
|
||||
name: "{{ ansible_user }}"
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user