become root for some actions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user