aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
diff options
context:
space:
mode:
authorPeter Mikus <peter.mikus@protonmail.ch>2022-09-08 10:09:22 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-09-08 10:09:22 +0000
commit4f3daf594b398dcad92c776eb4c23e2a68e2e6b4 (patch)
tree6b2bd04cfc924557837ca695bb8b8f825e32d749 /fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
parentc540761ab253be97558d72100a6c27379cd0ed56 (diff)
fix(ansible): Jammy
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: Ib62bb38f07f4c12db330b6d6c1a09e6335f91b13
Diffstat (limited to 'fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml')
-rw-r--r--fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml b/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
index 70a80b43ea..d2fa2a3072 100644
--- a/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
+++ b/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
@@ -30,6 +30,14 @@
when:
- azure is defined and item == "2.73"
+- name: Reset gcc-9
+ ansible.builtin.command: "update-alternatives --remove-all gcc"
+ when: trex_extracted.changed
+
+- name: Reset g++-9
+ ansible.builtin.command: "update-alternatives --remove-all g++"
+ when: trex_extracted.changed
+
- name: Switch to gcc-9
ansible.builtin.command: "update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9"
when: trex_extracted.changed