summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/common/tasks/apt.yml3
-rw-r--r--roles/common/tasks/main.yml2
2 files changed, 1 insertions, 4 deletions
diff --git a/roles/common/tasks/apt.yml b/roles/common/tasks/apt.yml
index 57a4d10..f444315 100644
--- a/roles/common/tasks/apt.yml
+++ b/roles/common/tasks/apt.yml
@@ -1,35 +1,34 @@
- name: Install various APT tools
apt: pkg={{ item }}
with_items:
- apt
- - apt-listbugs
- apt-listchanges
- apt-show-versions
- debian-archive-keyring
- debian-goodies
+ - needrestart
- 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
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index caecf9a..c17ecc2 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -15,27 +15,25 @@
- include: smart.yml tags=smartmontools,smart
when: "not (ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'xen')"
- include: haveged.yml tags=haveged,entropy
- name: Copy genkeypair.sh
copy: src=usr/local/bin/genkeypair.sh
dest=/usr/local/bin/genkeypair.sh
owner=root group=root
mode=0755
tags: genkey
- include: logging.yml tags=logging
- include: ntp.yml tags=ntp
- include: mail.yml tags=mail,postfix
- name: Install common packages
apt: pkg={{ item }}
with_items:
- ca-certificates
- etckeeper
- ethtool
- git
- - harden-clients
- - harden-servers
- htop
- molly-guard
- rsync
- screen
- telnet-ssl