refactor: comment out pending change tasks in omv_updates.yaml
This commit is contained in:
+10
-10
@@ -16,15 +16,15 @@
|
||||
ansible.builtin.apt:
|
||||
autoremove: yes
|
||||
|
||||
- name: Apply pending changes
|
||||
ansible.builtin.command: /usr/local/bin/apply_changes.sh
|
||||
# - name: Apply pending changes
|
||||
# ansible.builtin.command: /usr/local/bin/apply_changes.sh
|
||||
|
||||
- name: Check if a file exists
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
register: reboot_required_file
|
||||
# - name: Check if a file exists
|
||||
# ansible.builtin.stat:
|
||||
# path: /var/run/reboot-required
|
||||
# register: reboot_required_file
|
||||
|
||||
- name: Reboot if required
|
||||
ansible.builtin.reboot:
|
||||
reboot_timeout: 120 # Adjust timeout as needed
|
||||
when: reboot_required_file.stat.exists
|
||||
# - name: Reboot if required
|
||||
# ansible.builtin.reboot:
|
||||
# reboot_timeout: 120 # Adjust timeout as needed
|
||||
# when: reboot_required_file.stat.exists
|
||||
Reference in New Issue
Block a user