From 9f09a40ed286b0a83445657597a2ab009cba8ed0 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 7 Oct 2024 09:26:16 -0400 Subject: [PATCH] ansible: Skip legacy compiler sources when not installing them Change-Id: I289c56f7c6ce7ff5fdfb23c0514d049d7645a1b0 Signed-off-by: Kienan Stewart --- automation/ansible/roles/compilers/tasks/setup-Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/ansible/roles/compilers/tasks/setup-Debian.yml b/automation/ansible/roles/compilers/tasks/setup-Debian.yml index 533c11e..422c096 100644 --- a/automation/ansible/roles/compilers/tasks/setup-Debian.yml +++ b/automation/ansible/roles/compilers/tasks/setup-Debian.yml @@ -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}}" -- 2.34.1