Skip to content

zerotao/ansible-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packages

Ansible Role to install packages

Role Variables

---
packages_cache_valid_time: omit # uses Ansible default; see `ansible-doc apt`
packages_accept: []
packages_add: []
packages_remove: []
packages_repos: []

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - role: zerotao.packages
       packages_add: # list of packages to install
         - tmux
         - vim
       packages_remove: # list of packages to remove
         - build-essential
       packages_repos:  # list of repositories to add for the packages
         - name: erlang
           repo: "deb http://packages.erlang-solutions.com/ubuntu trusty contrib"
           key: "http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc"

License

BSD

About

Ansible role to install packages

Resources

Stars

Watchers

Forks

Packages

No packages published