This is a role that enables you to install or remove packages in Ansible.
Remember that for every distribution the packages have specific names.
You can define to install packages on a host level in Ansible
packages_installhost: "qemu-guest-agent, python3, python3-setuptools, python3-pip, python3-pylibmc, python3-pymysql, python3-mysqldb"
If you want to remove packages, use the
packages_removehost variable instead.
If you would like to install packages for several hosts you need to use Ansible groups.
Define your variables where every host can access them.
packages_installgroup: platforms_ubuntu: - "nmap" - "tcpdump" - "mc" - "git" - "screen" - "vim" tags_desktop: - "gvim"
This will install packages on hosts that belong to the groups platforms_ubuntu and tags_desktop.