Configure APT for use with Ansible. It:
- Updates the APT cache if not done for a given period
- Installs python-apt
- Installs apt-transport-https
While python-apt gets installed automatically by Ansible in more recent versions, apt-transport-https does not.
- Debian or Ubuntu
- apt_cache_valid_time
Time in seconds between apt cache updates. Defaults to 3600
---
- hosts: all
vars:
apt_cache_age: 7200
roles:
- role: willshersystems.apt
when: ansible_pkg_mgr == 'apt'
LGPLv3
Matt Willsher [email protected]
© 2015 Willsher Systems