ansible: Update package installations to support EL aarch64
authorKienan Stewart <kstewart@efficios.com>
Thu, 1 Jun 2023 14:50:22 +0000 (10:50 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 1 Jun 2023 18:21:41 +0000 (14:21 -0400)
A number of packages are in the epel-release or the develo
repositories.

Change-Id: I0ad4b2c9dea377c86bbaf00e7631fa223425af08

automation/ansible/roles/babeltrace/tasks/main.yml
automation/ansible/roles/binutils-gdb/vars/Rocky.yml [new symlink]
automation/ansible/roles/common/tasks/main.yml
automation/ansible/roles/common/tasks/setup-RedHat.yml

index cd37dff67394b7b1737579ff33e2d12f9395a318..177603ea415eced742d3d7517bc4cc2e2e0b9c38 100644 (file)
@@ -3,6 +3,7 @@
 - name: Include OS-specific variables.
   include_vars: "{{ item }}"
   with_first_found:
+    - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml"
     - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
     - "{{ ansible_distribution }}.yml"
     - "{{ ansible_os_family }}.yml"
diff --git a/automation/ansible/roles/binutils-gdb/vars/Rocky.yml b/automation/ansible/roles/binutils-gdb/vars/Rocky.yml
new file mode 120000 (symlink)
index 0000000..f802000
--- /dev/null
@@ -0,0 +1 @@
+RedHat.yml
\ No newline at end of file
index a8798c55a5a06f35183f30febfbf03cc8215fe86..61ee1ee329f4ee9aea022c19450281ede74847ba 100644 (file)
@@ -3,6 +3,7 @@
 - name: Include OS-specific variables.
   include_vars: "{{ item }}"
   with_first_found:
+    - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml"
     - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
     - "{{ ansible_distribution }}.yml"
     - "{{ ansible_os_family }}.yml"
index 355eeca83be105c85e87a0b53823590e3944c918..d1e58164ccd2c99f195beb4659aff5852512a669 100644 (file)
@@ -1,4 +1,18 @@
 ---
+- name: Enable epel-release
+  # This provides some extra packages, eg. htop, python3-virtualenv
+  dnf:
+    name: epel-release
+
+- name: Enable rocky devel repository
+  yum_repository:
+    name: devel
+    description: "Rocky Linux $releasever - Devel"
+    mirrorlist: "https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=Devel-$releasever"
+    enabled: true
+    gpgcheck: true
+  when: ansible_distribution == 'Rocky'
+
 - name: Ensure common packages are installed.
   dnf:
     name: "{{ common_packages }}"
This page took 0.027398 seconds and 4 git commands to generate.