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