homeserver/roles/mgrote.acng/tasks/main.yml
mg 6475d88cd7 acng --> acng2 (#433)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #433
2022-11-11 20:08:39 +01:00

42 lines
998 B
YAML

---
- name: ensure directories exists
become: yes
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /etc/apt-cacher-ng
- /var/cache/apt-cacher-ng
- name: ensure directories have the right permissions
become: yes
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: apt-cacher-ng
group: apt-cacher-ng
loop:
- /var/cache/apt-cacher-ng
- name: templating acng.conf
become: yes
ansible.builtin.template:
src: "acng.conf"
dest: "/etc/apt-cacher-ng/acng.conf"
mode: 0664
notify: acng_starten_aktivieren
- name: install apt-cacher-ng packages
become: yes
ansible.builtin.package:
name: apt-cacher-ng
state: present
- name: templating security.conf
become: yes
ansible.builtin.template:
src: "security.conf"
dest: "{{ acng_security_conf_path }}"
mode: 0640
notify: acng_starten_aktivieren
no_log: true