cellinfo
/
ansible.apt
Archived
2
0
Fork 0
This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
ansible.apt/tasks/config.yml

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