jjb: Use lttng-modules from gerrit when depends-on is set
[lttng-ci.git] / automation / ansible / roles / cross-compilers / tasks / setup-Debian.yml
index 7464b1e7b18ccffa5f5ffeb980b730abc3781f5a..95add22384109a7e115861d25d48a8f0a7d0ae07 100644 (file)
@@ -16,8 +16,9 @@
         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=[]))}}"
+    name: "{{ cross_compilers_packages | difference(lookup('vars', 'cross_compilers_packages_exclude_{{ansible_userspace_architecture|default(ansible_architecture)}}', default=[]))}}"
 
 - name: Install legacy cross compilers
   when: ansible_distribution == 'Debian' and ansible_architecture == 'x86_64' and compilers_legacy_install
This page took 0.02329 seconds and 4 git commands to generate.