Fix become issue
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
- name: Reboot the server (if required).
|
- name: Reboot the server (if required).
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
when: reboot_required_file is defined and reboot_required_file.stat.exists
|
when: reboot_required_file is defined and reboot_required_file.stat.exists
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: "Updating and Upgrading Yum Packages"
|
- name: "Updating and Upgrading Yum Packages"
|
||||||
yum:
|
yum:
|
||||||
|
|||||||
Reference in New Issue
Block a user