cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Manage general config file.

This commit is contained in:
Jeremy Gardais 2017-08-18 10:32:03 +02:00
parent c5f274356f
commit b7f3b6073a
4 changed files with 13 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, dpkg config files.
* Manage general, periodic and dpkg config files.
* Purge default configuration files sets by others apps.

View File

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

View File

@ -9,6 +9,7 @@
group: root
mode: 0644
with_items:
- "etc/apt/apt.conf.d/10general"
- "etc/apt/apt.conf.d/10periodic"
- name: CONFIG dpkg

View File

@ -0,0 +1,10 @@
# {{ ansible_managed }}
APT
{
APT::autoclean "1";
APT::clean-installed "1";
}
# The date of the last successful repositories update
APT::Update::Post-Invoke {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};