remove update mechanism for other distributions
This commit is contained in:
14
update.yml
14
update.yml
@@ -17,21 +17,9 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Check if reboot required (Debian/Ubuntu)
|
|
||||||
stat:
|
|
||||||
path: /var/run/reboot-required
|
|
||||||
register: reboot_required_file
|
|
||||||
when: ansible_os_family != "RedHat"
|
|
||||||
|
|
||||||
- name: Reboot if required (RedHat/CentOS)
|
- name: Reboot if required (RedHat/CentOS)
|
||||||
reboot:
|
reboot:
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
- needs_restarting_output.rc == 1
|
- needs_restarting_output.rc == 1
|
||||||
- needs_restarting_output is defined
|
- needs_restarting_output is defined
|
||||||
|
|
||||||
- name: Reboot if required (Debian/Ubuntu)
|
|
||||||
reboot:
|
|
||||||
when:
|
|
||||||
- ansible_os_family != "RedHat"
|
|
||||||
- reboot_required_file.stat.exists == true
|
|
||||||
Reference in New Issue
Block a user