diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-10-30 21:03:16 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:27 +0200 |
commit | e54c9bc8d96bdef1c9a5634f5cff3b66f38f487e (patch) | |
tree | 4d9949aa61723f3ddd0ac8d9db5461ad209b2a55 /roles/common/tasks | |
parent | a43183028558300268e4cf74fec9631d342c0406 (diff) |
Configure APT.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/apt.yml | 36 | ||||
-rw-r--r-- | roles/common/tasks/main.yml | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/roles/common/tasks/apt.yml b/roles/common/tasks/apt.yml new file mode 100644 index 0000000..9b553b0 --- /dev/null +++ b/roles/common/tasks/apt.yml @@ -0,0 +1,36 @@ +- name: Install various APT tools + apt: pkg={{ item }} + with_items: + - apt + - apt-listbugs + - apt-listchanges + - apt-show-versions + - debian-archive-keyring + - debian-goodies + - unattended-upgrades + - debfoster + - deborphan + - debsecan + - debsums + - update-notifier-common + +- name: Configure APT (1) + template: src=etc/apt/{{ item }}.j2 + dest=/etc/apt/{{ item }} + owner=root group=root + mode=0644 + with_items: + - sources.list + - preferences + notify: + - apt-get update + +- name: Configure APT (2) + copy: src=etc/apt/{{ item }} + dest=/etc/apt/{{ item }} + owner=root group=root + mode=0644 + with_items: + - listchanges.conf + - apt.conf.d/10periodic + - apt.conf.d/50unattended-upgrades diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 1abcbb6..d6a4266 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,3 +1,4 @@ --- - include: sysctl.yml tags=sysctl - include: hosts.yml +- include: apt.yml tags=apt |