Ansible role to install and uninstall packages via Apt, a package manager for Debian-based systems.
ansible-galaxy install markahesketh.apt
Default values are listed below (see defaults/main.yml
):
apt_packages_install: []
apt_packages_uninstall: []
The apt_packages_install
and apt_packages_uninstall
variables take an array of package names. For example:
apt_packages_install:
- vim
- htop
- tree
apt_packages_install:
- cowsay
None.
- hosts: web
roles:
- markahesketh.apt
molecule test
This role is open-sourced software licensed under the MIT license.
By Mark Hesketh, a web developer from Manchester, UK.