cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Manage dpkg default values.

This commit is contained in:
Jeremy Gardais 2017-08-18 10:12:38 +02:00
parent dc037fe18d
commit c5f274356f
4 changed files with 24 additions and 1 deletions

View File

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

View File

@ -49,6 +49,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
### APT Configuration
- Set periodic actions.
- Set dpkg default values.
- Purge default configuration files sets by others apps.
### Sources List

View File

@ -11,6 +11,16 @@
with_items:
- "etc/apt/apt.conf.d/10periodic"
- name: CONFIG dpkg
template:
src: "{{ item }}.j2"
dest: "/{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- "etc/apt/apt.conf.d/20dpkg"
- name: CONFIG purge default config
file:
path: "/etc/apt/apt.conf.d/{{ item }}"

View File

@ -0,0 +1,12 @@
# {{ ansible_managed }}
Dpkg
{
Options
{
# keep the old version of configuration files without prompting
"--force-confold";
# let dpkg decide by itself when multiple choice
"--force-confdef";
}
};