4 - when: ansible_os_family == 'Debian'
5 ansible.builtin.command:
6 argv: ['apt-get', 'clean']
7 - when: ansible_os_family == 'Suse'
8 ansible.builtin.command:
9 argv: ['zypper', 'clean']
10 - when: ansible_distribution == 'SLES'
12 - ansible.builtin.command:
13 argv: ['SUSEConnect', '-d']
14 - ansible.builtin.command:
15 argv: ['SUSEConnect', '--cleanup']
16 - ansible.builtin.command:
17 argv: ['cloud-init', 'clean']
19 - ansible.builtin.command:
21 - ansible.builtin.shell:
23 # Some default shells don't have the `history` built-in,
24 # and it's not blocking that this works or not.
26 - ansible.builtin.file:
27 path: /root/.ssh/authorized_keys2