| 1 | --- |
| 2 | - name: Connect SLES Repo |
| 3 | when: ansible_distribution == 'SLES' |
| 4 | ansible.builtin.command: |
| 5 | argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"] |
| 6 | with_items: "{{common_sles_connect_repos}}" |
| 7 | |
| 8 | - name: Ensure common patterns are installed. |
| 9 | zypper: "name={{ common_patterns }} type=pattern state=present update_cache=yes" |
| 10 | |
| 11 | - name: Ensure common packages are installed. |
| 12 | zypper: "name={{ common_packages }} type=package state=present update_cache=yes" |