roles/common: Add playbook for Debian packages

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-07-24 19:52:54 +03:00
parent 1fc2453703
commit e15d1be867
2 changed files with 39 additions and 0 deletions

View File

@ -12,6 +12,10 @@
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
tags: packages tags: packages
- include: packages_Debian.yml
when: ansible_distribution == 'Debian'
tags: packages
- include: iptables_Debian.yml - include: iptables_Debian.yml
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
tags: firewall tags: firewall

View File

@ -0,0 +1,35 @@
---
- name: Configure apt mirror
template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644
- name: Install base packages
apt: name={{ item }} update_cache=yes
with_items:
- git
- tmux
- iotop
- htop
- strace
- cron-apt #how does this work with systemd?
- safe-rm
- debian-goodies
- mosh
- python-pycurl # for ansible's apt_repository
- lzop
- vim
- lrzip
- unzip
- name: Configure cron-apt (config)
copy: src=cron-apt/config dest=/etc/cron-apt/config mode=0644 owner=root group=root
- name: Configure cron-apt (config)
copy: src=cron-apt/3-download dest=/etc/cron-apt/action.d/3-download mode=0644 owner=root group=root
- name: Configure cron-apt (security)
copy: src=cron-apt/security.sources.list dest=/etc/apt/security.sources.list mode=0644 owner=root group=root
- name: Enable systemd-timesyncd
service: name=systemd-timesyncd state=started enabled=yes
# vim: set sw=2 ts=2: