From 9518826ea4611d6aa1451005c283122c6299c1a8d95566a4626ae9c46b649876 Mon Sep 17 00:00:00 2001 From: Heath Petersen Date: Sat, 25 Jul 2026 11:14:35 -0500 Subject: [PATCH] become root for some actions --- bootstrap.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap.yml b/bootstrap.yml index dbd0023..29a0287 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -199,11 +199,13 @@ mode: u=rwx,go= - name: Remove packages installed as dependencies that are no longer required and purge their configuration files + become: true ansible.builtin.apt: autoremove: yes purge: true - name: Remove old downloaded packages + become: true ansible.builtin.apt: clean: yes @@ -219,6 +221,7 @@ handlers: - name: Restart sshd + become: true ansible.builtin.service: name: sshd state: restarted