ansible: Add parameter to skip installing cross compilers
authorKienan Stewart <kstewart@efficios.com>
Mon, 27 May 2024 18:17:50 +0000 (14:17 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 27 May 2024 18:17:50 +0000 (14:17 -0400)
Change-Id: I4e885ce54ef491660d0881230cd503088454b760
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/cross-compilers/defaults/main.yml
automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml
automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml
automation/ansible/roles/cross-compilers/tasks/setup-RedHat.yml

index d50918bc1b74f231fe293121b702071099347d33..0123d7bf36c3903a3730a6a0d75136f9c8e3354e 100644 (file)
@@ -1,3 +1,4 @@
 ---
 compilers_legacy_install: true
 cross_compilers_debian_bookworm_snapshot: false
+cross_compilers_install: true
index 64f96daf68767081c2cd1d9a547d7913ad27244e..a2162313de0d094875c30d640291c9c21e8da041 100644 (file)
@@ -3,4 +3,5 @@
   apk: update_cache=yes
 
 - name: Ensure cross-compilers packages are installed.
+  when: cross_compilers_install|default(true)
   apk: "name={{ cross_compilers_packages }} state=present"
index 95173f243d5e72196c3d5e3a214d678507e8556d..95add22384109a7e115861d25d48a8f0a7d0ae07 100644 (file)
@@ -16,6 +16,7 @@
         update_cache: true
 
 - name: Ensure cross-compilers packages are installed.
+  when: cross_compilers_install|default(true)
   ansible.builtin.apt:
     name: "{{ cross_compilers_packages | difference(lookup('vars', 'cross_compilers_packages_exclude_{{ansible_userspace_architecture|default(ansible_architecture)}}', default=[]))}}"
 
index c8429d20a37f2e9a1fd1f47424f46f36d9868583..dd410757309848010c89653425adf2f63fed87f3 100644 (file)
@@ -1,5 +1,6 @@
 ---
 - name: Ensure cross-compilers packages are installed.
+  when: cross_compilers_install|default(true)
   dnf:
     name: "{{ cross_compilers_packages }}"
     state: installed
This page took 0.024891 seconds and 4 git commands to generate.