ansible: Skip legacy compiler sources when not installing them
authorKienan Stewart <kstewart@efficios.com>
Mon, 7 Oct 2024 13:26:16 +0000 (09:26 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 7 Oct 2024 13:26:16 +0000 (09:26 -0400)
Change-Id: I289c56f7c6ce7ff5fdfb23c0514d049d7645a1b0
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/compilers/tasks/setup-Debian.yml

index 533c11ea2806f3e51a82c60560b990952bf1ff2b..422c096d93e1a84dd7b7a3edadd4241254a93a9a 100644 (file)
@@ -1,5 +1,6 @@
 ---
 - name: Install legacy compilers
+  when: compilers_legacy_install
   block:
    - name: Add sources for gcc 4.8
      when: ansible_distribution == 'Debian'
@@ -7,7 +8,6 @@
        repo: 'deb [trusted=yes] http://archive.debian.org/debian jessie main'
        state: "{{compilers_legacy_install|ternary('present', 'absent')}}"
    - name: Install legacy compiler packages
-     when: compilers_legacy_install
      ansible.builtin.apt:
        name: "{{compilers_legacy_packages}}"
 
This page took 0.027808 seconds and 4 git commands to generate.