Install software packages with default operating system package manager.
-
defaults
software_keys: [] # list of repository keys to manage software_repos: [] # list of repositories to manage software_pkgs: [] # list of software to manage - name: "" # packages name to install or remove deb: "" # direct path to deb file state: "" # as in ansible modules autoremove: bool # remove also obsolete packages update_cache: bool # update package list from configured repo accept_licenses: bool # accept pkg5 package licenses
This role has no dependencies. But it is frequently used as dependency in other roles.
-
requirements.yml
- name: software src: mario_slowinski.software
-
playbook usage
- hosts: servers gather_facts: yes # to determine ansible_os_family roles: - role: software
-
role dependency usage
dependencies: - name: software src: mario_slowinski.software software_pkgs: "{{ <role>_pkgs }}"