From: Kienan Stewart Date: Thu, 25 Jan 2024 18:34:55 +0000 (-0500) Subject: ansible: Install compilers on sles nodes X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=df8c0674a4f4dc257c74b0562f1392cc7b3f7730;p=lttng-ci.git ansible: Install compilers on sles nodes Change-Id: I1c487cc929ab661c091812b7ff6e9730e6bf648d Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/node_sles.yml b/automation/ansible/node_sles.yml index 5ad9454..2c75e88 100644 --- a/automation/ansible/node_sles.yml +++ b/automation/ansible/node_sles.yml @@ -2,6 +2,7 @@ roles: - common - common-node + - compilers - babeltrace - liburcu - lttng-ust diff --git a/automation/ansible/roles/compilers/tasks/main.yml b/automation/ansible/roles/compilers/tasks/main.yml index 77edc5b..099aa34 100644 --- a/automation/ansible/roles/compilers/tasks/main.yml +++ b/automation/ansible/roles/compilers/tasks/main.yml @@ -17,3 +17,6 @@ - include: setup-Alpine.yml when: ansible_os_family == 'Alpine' + +- include: setup-Suse.yml + when: ansible_os_family == 'Suse' diff --git a/automation/ansible/roles/compilers/tasks/setup-Suse.yml b/automation/ansible/roles/compilers/tasks/setup-Suse.yml new file mode 100644 index 0000000..6d93563 --- /dev/null +++ b/automation/ansible/roles/compilers/tasks/setup-Suse.yml @@ -0,0 +1,3 @@ +--- +- name: Ensure common_node packages are installed. + zypper: "name={{ compilers_packages }} type=package state=present update_cache=yes" diff --git a/automation/ansible/roles/compilers/vars/Suse.yml b/automation/ansible/roles/compilers/vars/Suse.yml index c12ad75..ed46ff8 100644 --- a/automation/ansible/roles/compilers/vars/Suse.yml +++ b/automation/ansible/roles/compilers/vars/Suse.yml @@ -1,2 +1,4 @@ --- -compilers_packages: [] +compilers_packages: + - gcc + - gcc-c++