44 lines
910 B
YAML
44 lines
910 B
YAML
---
|
|
# tasks file for config
|
|
|
|
- name: CONFIG APT
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_items:
|
|
- "etc/apt/apt.conf.d/01autoremove.conf"
|
|
- "etc/apt/apt.conf.d/10general.conf"
|
|
- "etc/apt/apt.conf.d/10periodic.conf"
|
|
|
|
- name: CONFIG dpkg
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_items:
|
|
- "etc/apt/apt.conf.d/20dpkg.conf"
|
|
|
|
- name: CONFIG unattended-upgrades
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_items:
|
|
- "etc/apt/apt.conf.d/50unattended-upgrades.conf"
|
|
when: apt_unattended_upgrades
|
|
|
|
- name: CONFIG purge default config
|
|
file:
|
|
path: "/etc/apt/apt.conf.d/{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- "{{ apt_conf_purge_list }}"
|
|
when: apt_conf_purge_manage
|