From 52e06d1275753f301cda7569500e5781cf868f66 Mon Sep 17 00:00:00 2001 From: jeet Date: Mon, 23 Mar 2026 20:02:20 +0000 Subject: [PATCH] Add become to update and reboot --- playbooks/update_ansible_host.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/update_ansible_host.yml b/playbooks/update_ansible_host.yml index a39eeb1..eaffe71 100644 --- a/playbooks/update_ansible_host.yml +++ b/playbooks/update_ansible_host.yml @@ -10,6 +10,7 @@ update_cache: yes upgrade: safe when: ansible_os_family == "Debian" + become: true - name: Check if reboot is required ansible.builtin.stat: @@ -21,3 +22,4 @@ - name: Reboot if required ansible.builtin.reboot: when: reboot_required_file is defined and reboot_required_file.stat.exists + become: true