Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 969 Bytes

README.md

File metadata and controls

40 lines (31 loc) · 969 Bytes

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