File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ Role Variables
25
25
` os_images_package_dependencies_extra ` : List of additional packages to install
26
26
on the build host.
27
27
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 to prevent conflicts arising from the EPEL repository.
31
+
28
32
` os_images_cache ` : a path to a directory in which to cache build artefacts.
29
33
It defaults to ` ~/disk_images `
30
34
` 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 1
1
---
2
2
# List of additional host package dependencies to install.
3
3
os_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
4
7
# Path to virtualenv in which to install python dependencies to upload images.
5
8
os_images_venv :
6
9
# Path to virtualenv in which to install DIB to build images.
Original file line number Diff line number Diff line change 2
2
- name : Include OS family-specific variables
3
3
ansible.builtin.include_vars : " {{ ansible_facts.os_family }}.yml"
4
4
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
+
5
23
- name : Ensure required packages are installed
6
24
ansible.builtin.package :
7
25
name : " {{ (os_images_package_dependencies + os_images_package_dependencies_extra) | select | list }}"
You can’t perform that action at this time.
0 commit comments