Alan Orth
57120308dc
Ansible 2.4 and 2.5 are moving away from specialized loop functions and the old syntax will eventually be deprecated and removed. I did not change the with_fileglob loops because I'm not sure about their syntax yet. See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
---
|
|
- name: Configure apt mirror
|
|
template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644
|
|
when: ansible_architecture != 'armv7l'
|
|
|
|
- name: Upgrade base OS
|
|
apt: upgrade=dist update_cache=yes
|
|
|
|
- name: Install base packages
|
|
apt: pkg={{ item }}
|
|
loop:
|
|
- 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
|
|
- apt-transport-https # for https support in apt
|
|
|
|
- name: Security hardening (CIS Benchmark 1.0)
|
|
apt: pkg={{ item }} state=absent purge=yes
|
|
loop:
|
|
- whoopsie # CIS 4.1
|
|
- apport # CIS 4.1
|
|
|
|
- name: Remove annoying packages
|
|
apt: pkg={{ item }} state=absent purge=yes
|
|
loop:
|
|
- command-not-found
|
|
- command-not-found-data
|
|
- python3-commandnotfound
|
|
|
|
- name: Configure cron-apt
|
|
import_tasks: cron-apt.yml
|
|
tags: cron-apt
|
|
|
|
- name: Install tarsnap
|
|
import_tasks: tarsnap.yml
|
|
|
|
# vim: set sw=2 ts=2:
|