File tree Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 11---
22namespace : stackhpc
33name : openstack
4- version : 0.5.2
4+ version : 0.5.3
55readme : README.md
66authors :
77 - StackHPC Ltd
1313 - openstack
1414dependencies :
1515 " openstack.cloud " : " >=2.1.0"
16+ " community.general " : " >=8.2.0"
1617repository : https://github.com/stackhpc/ansible-collection-openstack
1718documentation : https://github.com/stackhpc/ansible-collection-openstack/blob/main/README.md
1819homepage : https://github.com/stackhpc/ansible-collection-openstack
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ Role Variables
2525` os_images_package_dependencies_extra ` : List of additional packages to install
2626on the build host.
2727
28+ ` os_images_install_epel_repo ` : Whether to enable the CRB repository and install
29+ the EPEL repository before installing packages on the build host. This is
30+ disabled by default.
31+
2832` os_images_cache ` : a path to a directory in which to cache build artefacts.
2933It defaults to ` ~/disk_images `
3034` NOTE ` : new images will NOT be built, even if changes are made in config, if an image
Original file line number Diff line number Diff line change 11---
22# List of additional host package dependencies to install.
33os_images_package_dependencies_extra : []
4+ # Whether to enable the CRB repository and install the EPEL repository before
5+ # installing packages.
6+ os_images_install_epel_repo : false
47# Path to virtualenv in which to install python dependencies to upload images.
58os_images_venv :
69# Path to virtualenv in which to install DIB to build images.
Original file line number Diff line number Diff line change 22- name : Include OS family-specific variables
33 ansible.builtin.include_vars : " {{ ansible_facts.os_family }}.yml"
44
5+ - name : Ensure CRB repository is enabled
6+ community.general.dnf_config_manager :
7+ name : crb
8+ state : enabled
9+ when :
10+ - os_images_install_epel_repo | bool
11+ - ansible_facts.os_family == "RedHat"
12+ become : true
13+
14+ - name : Ensure EPEL repository is installed
15+ ansible.builtin.dnf :
16+ name : epel-release
17+ state : present
18+ when :
19+ - os_images_install_epel_repo | bool
20+ - ansible_facts.os_family == "RedHat"
21+ become : true
22+
523- name : Ensure required packages are installed
624 ansible.builtin.package :
725 name : " {{ (os_images_package_dependencies + os_images_package_dependencies_extra) | select | list }}"
You can’t perform that action at this time.
0 commit comments