cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Purge default configuration files sets by others apps.

This commit is contained in:
Jeremy Gardais 2017-08-17 17:31:56 +02:00
parent f1d5aa578b
commit dc037fe18d
4 changed files with 20 additions and 0 deletions

View File

@ -9,3 +9,4 @@
* Ensure to install some additionnals tools (aptitude,…). * Ensure to install some additionnals tools (aptitude,…).
* Ensure to remove really useless packages (laptop-detect, tasksel,…). * Ensure to remove really useless packages (laptop-detect, tasksel,…).
* Manage periodic config file. * Manage periodic config file.
* Purge default configuration files sets by others apps.

View File

@ -21,6 +21,8 @@ Manage APT repos, preferences and configuration for IPR's servers.
* **apt_conf_update_pkg_lists**: Period of automatic repositories update in days [default: `1`]. * **apt_conf_update_pkg_lists**: Period of automatic repositories update in days [default: `1`].
* **apt_conf_download_upgradeable_pkg**: Period of automatic download of upgradeable packages in days [default: `1`]. * **apt_conf_download_upgradeable_pkg**: Period of automatic download of upgradeable packages in days [default: `1`].
* **apt_conf_auto_clean_interval**: Period of automatic clean of no longer available packages [default: `0`]. * **apt_conf_auto_clean_interval**: Period of automatic clean of no longer available packages [default: `0`].
* **apt_conf_purge_list**: The list of default APT configuration files sets by differents packages.
* **apt_conf_purge_manage**: If the purge of default configuration should be managed [default: `true`].
* **apt_src_list_manage**: If apt sources list files should be managed [default: `true`]. * **apt_src_list_manage**: If apt sources list files should be managed [default: `true`].
* **apt_purge_src_list_file**: If the default sources.file must be absent [default: `true`]. * **apt_purge_src_list_file**: If the default sources.file must be absent [default: `true`].
* **apt_stretch_manage**: If Stretch configuration should be managed [default: `true`]. * **apt_stretch_manage**: If Stretch configuration should be managed [default: `true`].
@ -47,6 +49,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
### APT Configuration ### APT Configuration
- Set periodic actions. - Set periodic actions.
- Purge default configuration files sets by others apps.
### Sources List ### Sources List
Manage Debian's sources.list: Manage Debian's sources.list:

View File

@ -4,6 +4,14 @@
apt_conf_update_pkg_lists: 1 apt_conf_update_pkg_lists: 1
apt_conf_download_upgradeable_pkg: 1 apt_conf_download_upgradeable_pkg: 1
apt_conf_auto_clean_interval: 0 apt_conf_auto_clean_interval: 0
apt_conf_purge_list:
- 00trustcdrom
- 01autoremove
- 01autoremove-kernels
- 15hobbit-plugins-update-stamp
- 20listchanges
- 70debconf
apt_conf_purge_manage: true
apt_src_list_manage: true apt_src_list_manage: true
apt_purge_src_list_file: true apt_purge_src_list_file: true

View File

@ -10,3 +10,11 @@
mode: 0644 mode: 0644
with_items: with_items:
- "etc/apt/apt.conf.d/10periodic" - "etc/apt/apt.conf.d/10periodic"
- 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