ansible-personal/roles/common/tasks/packages_Ubuntu.yml
Alan Orth 9aaad366f5 roles/common: Only add extras repo on Ubuntu 14.04
The Extras repo was discontinued after 14.10 (but the latest we
deploy is 14.04).

See: https://lists.ubuntu.com/archives/technical-board/2015-January/002063.html

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-08-23 00:02:38 +03:00

50 lines
1.1 KiB
YAML

---
- name: Configure apt mirror
template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644
- name: Add GPG key for Extras repo
apt_key: id=0x3E5C1192 url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x16126D3A3E5C1192 state=present
when: ansible_distribution_version == '14.04'
- name: Upgrade base OS
apt: upgrade=dist update_cache=yes
- name: Install base packages
apt: pkg={{ item }}
with_items:
- ntp
- git
- tmux
- iotop
- htop
- strace
- s3cmd
- cron-apt
- safe-rm
- debian-goodies
- mosh
- python-pycurl # for ansible's apt_repository
- sysv-rc-conf
- lzop
- vim
- lrzip
- unzip
- name: Security hardening (CIS Benchmark 1.0)
apt: pkg={{ item }} state=absent purge=yes
with_items:
- whoopsie # CIS 4.1
- apport # CIS 4.1
- name: Remove annoying packages
apt: pkg={{ item }} state=absent purge=yes
with_items:
- command-not-found
- command-not-found-data
- python3-commandnotfound
- include: cron-apt.yml
tags: cron-apt
# vim: set sw=2 ts=2: