Ansible Role to install packages
---
packages_cache_valid_time: omit # uses Ansible default; see `ansible-doc apt`
packages_accept: []
packages_add: []
packages_remove: []
packages_repos: []
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"
BSD