diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-20 18:54:18 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-20 18:54:18 +0100 |
commit | 8f7fe713dba455cd6a2e4eef7da178c457a2e269 (patch) | |
tree | e8a922c8e628b87f76767d1e51a89e3f26a894c7 | |
parent | 845f69638e7a719fe611eb8c3aa067f3c8d5a217 (diff) | |
download | infra-8f7fe713dba455cd6a2e4eef7da178c457a2e269.tar.gz infra-8f7fe713dba455cd6a2e4eef7da178c457a2e269.tar.bz2 infra-8f7fe713dba455cd6a2e4eef7da178c457a2e269.zip |
Add paccache role to all hosts
-rw-r--r-- | TODO.txt | 1 | ||||
-rw-r--r-- | essential.yml | 1 | ||||
-rw-r--r-- | roles/paccache/tasks/main.yml | 11 |
3 files changed, 12 insertions, 1 deletions
@@ -48,7 +48,6 @@ LATER * Install fail2ban. * Set correct hostname for each host. -* Clean pacman caches. * Do `systemctl daemon-reload` on unit updates? diff --git a/essential.yml b/essential.yml index 0bb9211..1d625ce 100644 --- a/essential.yml +++ b/essential.yml @@ -6,6 +6,7 @@ - { role: sshd } - { role: sudo } - { role: atop } + - { role: paccache } - { role: ssh } - { role: bash } - { role: vim } diff --git a/roles/paccache/tasks/main.yml b/roles/paccache/tasks/main.yml new file mode 100644 index 0000000..eff1f4f --- /dev/null +++ b/roles/paccache/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install paccache + ansible.builtin.package: + name: + - pacman-contrib + state: present + +- name: Enable paccache timer + ansible.builtin.service: + name: paccache.timer + enabled: yes + state: started |