Change-Id: Ide81884d4bf64e61f0d824668455d78235715c71
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
- name: Connect SLES Repo
when: ansible_distribution == 'SLES'
- ansible.builtin.command:
- argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"]
- with_items: "{{common_sles_connect_repos}}"
+ include_role:
+ name: suse
+ tasks_from: product
+ loop: "{{common_sles_connect_repos}}"
+ loop_control:
+ loop_var: 'product'
- name: Ensure common patterns are installed.
zypper: "name={{ common_patterns }} type=pattern state=present update_cache=yes"
- 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([])}}"
+ include_role:
+ name: suse
+ tasks_from: product
+ loop: "{{developer_sles_products|default([])}}"
+ loop_control:
+ loop_var: 'product'