zerotao / ansible-packages

Ansible role to install packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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