Additional_packages
This role was created to install any package that you would like for jammy_headless- or desktop.
Requirements
General
This role consists of two main steps:
- Running the equivalent of apt-get update
#equivalent of sudo apt update
- name: Run the equivalent of "apt-get update"
ansible.builtin.apt:
update_cache: yes
- List of packages will be installed via the packages variable that needs to be filled in the inventory file
#List of Packages will be installed via the packages Variable
- name: "Installs the following packages: {{ packages }}"
package:
name: "{{ additional_packages }}"
state: latest
when: packages|length > 0
become: true
Dependencies
Role Dependencies
Package Dependencies
Role Variables
Name | Type | Default value | Purpose | Comment | Role |
---|---|---|---|---|---|
additional_packages_conf | Boolean | false | If this variable is set to true in the inventory file, then the packages variable may be filled with packages you would like to install | - | jammy_additional_packages |
additional_packages | String | "" | If add_packages_conf is set to true, then the packages variable can be filled with packages that you would like to install. This variable is by default empty and will be skipped if empty. | - | jammy_additional_packages and jammy_package_management |
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: username.rolename, x: 42 }
License
BSD
Author Information
Maintainer: Niels Dill
Support-Contact: s4d-linux-support@id.ethz.ch