Alan Orth
16a9ebf97f
Ansible 2.4 changes the way includes work. Now you have to use "import" for playbooks and tasks that are static, and "include" for those that are dynamic (ie, those that use variables, loops, etc). See: http://docs.ansible.com/ansible/devel/playbooks_reuse_includes.html
29 lines
556 B
YAML
29 lines
556 B
YAML
---
|
|
- 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
|
|
|
|
- import_tasks: cron-apt.yml
|
|
tags: cron-apt
|
|
|
|
- import_tasks: tarsnap.yml
|
|
|
|
# vim: set sw=2 ts=2:
|