From: Kienan Stewart Date: Mon, 7 Oct 2024 13:26:16 +0000 (-0400) Subject: ansible: Skip legacy compiler sources when not installing them X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=9f09a40ed286b0a83445657597a2ab009cba8ed0;p=lttng-ci.git ansible: Skip legacy compiler sources when not installing them Change-Id: I289c56f7c6ce7ff5fdfb23c0514d049d7645a1b0 Signed-off-by: Kienan Stewart --- 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}}"