Alan Orth
201165cff6
I have added cache_valid_time=3600 for the first task in each tag that could be possibly running apt-related commands. For ex, the "nginx" tag is also in the "packages" tag, but sometimes you run the nginx tag by itself (perhaps repeatadely), so you'd want to limit the update unless the cache was 1 hour old
27 lines
544 B
YAML
27 lines
544 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 cache_valid_time=3600
|
|
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
|
|
|
|
- include: cron-apt.yml
|
|
tags: cron-apt
|
|
|
|
# vim: set sw=2 ts=2:
|