Install or uninstall packages, using either apt, yum or pip.
Assumes gather_facts==true to determine OS/flavor.
default_packages = list of package names to install, default is an empty list remove_packages = list of package names to uninstall, default is an empty list python_packages = list of module names to install, default is an empty list user_pip = boolean to determine if the pip modules install in the user or system locations
None
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: packages, python\_packages: ["numpy"] }
GPLv3
Michael P. Reilly http://bitbucket.org/Arcege