ansible: Add Ubuntu 22.04 support to binutils-gdb role
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 18 Jul 2022 20:18:36 +0000 (16:18 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 18 Jul 2022 20:42:57 +0000 (16:42 -0400)
Change-Id: Ieb56779e5769f59d9b3455946904dc468e0a39d0
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/roles/binutils-gdb/tasks/main.yml
automation/ansible/roles/binutils-gdb/vars/Alpine.yml
automation/ansible/roles/binutils-gdb/vars/Debian.yml
automation/ansible/roles/binutils-gdb/vars/RedHat.yml
automation/ansible/roles/binutils-gdb/vars/Suse.yml
automation/ansible/roles/binutils-gdb/vars/Ubuntu-22.yml [new file with mode: 0644]

index 733840c1d04d10bcb61b4337d0e47a1363e813a1..cd37dff67394b7b1737579ff33e2d12f9395a318 100644 (file)
@@ -1,16 +1,15 @@
 ---
 # Include variables and define needed variables.
 - name: Include OS-specific variables.
-  include_vars: "{{ ansible_os_family }}.yml"
-
-- name: Define binutils_gdb_packages.
-  set_fact:
-    binutils_gdb_packages: "{{ __binutils_gdb_packages | list }}"
-  when: binutils_gdb_packages is not defined
+  include_vars: "{{ item }}"
+  with_first_found:
+    - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
+    - "{{ ansible_distribution }}.yml"
+    - "{{ ansible_os_family }}.yml"
 
 # Setup/install tasks.
 - include: setup-RedHat.yml
-  when: ansible_os_family == 'RedHat'
+  when: ansible_os_family in ['RedHat', 'Rocky']
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
index ec18d421c5900e40755a3d13d65b3318f549813c..3edd142a2988b999544d4dc242ee6e9489d61d71 100644 (file)
@@ -1,3 +1,3 @@
 ---
-__binutils_gdb_packages:
+binutils_gdb_packages:
   - libgmp-dev
index d86c1858a6de4acfe2267292c0eb5f2542a3f16f..4b0e7025b8cbf2d5016101e6460d327ed5740eea 100644 (file)
@@ -1,8 +1,8 @@
 ---
-__binutils_gdb_packages:
-  - libgmp-dev
-  - guile-2.2-dev
+binutils_gdb_packages:
   - dejagnu
+  - gfortran
   - gnat
+  - guile-2.2-dev
+  - libgmp-dev
   - libreadline-dev
-  - gfortran
index d4e53ab8aa42a629d04c766666cd20252c904652..43ae5e709157741e70c47d7daab39aa4d255f811 100644 (file)
@@ -1,3 +1,3 @@
 ---
-__binutils_gdb_packages:
+binutils_gdb_packages:
   - gmp-devel
index d4e53ab8aa42a629d04c766666cd20252c904652..43ae5e709157741e70c47d7daab39aa4d255f811 100644 (file)
@@ -1,3 +1,3 @@
 ---
-__binutils_gdb_packages:
+binutils_gdb_packages:
   - gmp-devel
diff --git a/automation/ansible/roles/binutils-gdb/vars/Ubuntu-22.yml b/automation/ansible/roles/binutils-gdb/vars/Ubuntu-22.yml
new file mode 100644 (file)
index 0000000..940303a
--- /dev/null
@@ -0,0 +1,8 @@
+---
+binutils_gdb_packages:
+  - dejagnu
+  - gfortran
+  - gnat-11
+  - guile-2.2-dev
+  - libgmp-dev
+  - libreadline-dev
This page took 0.024848 seconds and 4 git commands to generate.