Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

willshersystems/ansible-apt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Ansible Galaxy

APT

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.

Requirements

  • Debian or Ubuntu

Role variables

  • apt_cache_valid_time

Time in seconds between apt cache updates. Defaults to 3600

Example Playbook

---
- hosts: all
  vars:
    apt_cache_age:  7200
  roles:
    - role: willshersystems.apt
      when: ansible_pkg_mgr == 'apt'

License

LGPLv3

Author

Matt Willsher [email protected]

© 2015 Willsher Systems

About

Ansible role to configure APT

Resources

License

Stars

Watchers

Forks

Packages

No packages published