full commit
This commit is contained in:
parent
493de10395
commit
9df9e6c1ee
@ -28,7 +28,7 @@
|
||||
- name: Reboot the server if necessary (Debian/Ubuntu)
|
||||
reboot:
|
||||
reboot_timeout: 600
|
||||
when: needsRestartingDebian.stdout == "1"
|
||||
when: ansible_facts['os_family'] == "Debian" and needsRestartingDebian.stdout == "1"
|
||||
|
||||
- name: Update all servers (Fedora)
|
||||
dnf:
|
||||
@ -36,6 +36,12 @@
|
||||
state: latest
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Make sure dnf-utils is installed
|
||||
dnf:
|
||||
name: dnf-utils
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: See if a reboot is needed (Fedora)
|
||||
shell: "needs-restarting -r > /dev/null; echo $?"
|
||||
register: needsRestartingFedora
|
||||
@ -50,5 +56,5 @@
|
||||
- name: Reboot the server if necessary (Fedora)
|
||||
reboot:
|
||||
reboot_timeout: 600
|
||||
when: needsRestartingFedora.stdout == "1"
|
||||
when: ansible_facts['os_family'] == "RedHat" and needsRestartingFedora.stdout == "1"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user