From: Kienan Stewart Date: Wed, 31 Jan 2024 19:26:13 +0000 (-0500) Subject: ansible: Add SLES support to developer role X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ebb0ea56586f8838cee161d0eceb2ce304296be1;p=lttng-ci.git ansible: Add SLES support to developer role Change-Id: I710a9fd8f84789bb2617255e045a36f4af784f37 Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/roles/developer/tasks/setup-Suse.yml b/automation/ansible/roles/developer/tasks/setup-Suse.yml new file mode 100644 index 0000000..1373dff --- /dev/null +++ b/automation/ansible/roles/developer/tasks/setup-Suse.yml @@ -0,0 +1,7 @@ +--- + +- name: Activate required products + when: ansible_distribution == 'SLES' + ansible.builtin.command: + argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"] + with_items: "{{developer_sles_products|default([])}}" diff --git a/automation/ansible/roles/developer/vars/SLES-15.yml b/automation/ansible/roles/developer/vars/SLES-15.yml new file mode 100644 index 0000000..bb9375e --- /dev/null +++ b/automation/ansible/roles/developer/vars/SLES-15.yml @@ -0,0 +1,14 @@ +--- +developer_tui_packages: + - emacs-nox + - gdb + - pkg-config + - tmux + # - vim-nox + - vim + # wget may be used by some vlttng commands + - wget + +developer_sles_products: + # provides tmux + - PackageHub