Manage dpkg default values.
This commit is contained in:
parent
dc037fe18d
commit
c5f274356f
|
@ -8,5 +8,5 @@
|
||||||
* Manage default preferences file.
|
* Manage default preferences file.
|
||||||
* 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, dpkg config files.
|
||||||
* Purge default configuration files sets by others apps.
|
* Purge default configuration files sets by others apps.
|
||||||
|
|
|
@ -49,6 +49,7 @@ Manage APT repos, preferences and configuration for IPR's servers.
|
||||||
|
|
||||||
### APT Configuration
|
### APT Configuration
|
||||||
- Set periodic actions.
|
- Set periodic actions.
|
||||||
|
- Set dpkg default values.
|
||||||
- Purge default configuration files sets by others apps.
|
- Purge default configuration files sets by others apps.
|
||||||
|
|
||||||
### Sources List
|
### Sources List
|
||||||
|
|
|
@ -11,6 +11,16 @@
|
||||||
with_items:
|
with_items:
|
||||||
- "etc/apt/apt.conf.d/10periodic"
|
- "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
|
- name: CONFIG purge default config
|
||||||
file:
|
file:
|
||||||
path: "/etc/apt/apt.conf.d/{{ item }}"
|
path: "/etc/apt/apt.conf.d/{{ item }}"
|
||||||
|
|
|
@ -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";
|
||||||
|
}
|
||||||
|
};
|
Reference in New Issue