48099a5347
Last revision of I700ba2279dc7aadc7051cad53898e1de9007a08d of course had a typo compared to what was tested successfully before. Change-Id: I6f1053d69650ee6235089e61e7f19f8927d8e8f5
35 lines
975 B
YAML
35 lines
975 B
YAML
- name: set zypper base package repository (openSUSE Leap)
|
|
set_fact:
|
|
opensuse_repo_baseurl: "{{ package_mirror }}/distribution/leap/$releasever/repo/oss/"
|
|
when: not ansible_distribution | search("Tumbleweed")
|
|
|
|
- name: set zypper base package repository (openSUSE Tumbleweed)
|
|
set_fact:
|
|
opensuse_repo_baseurl: "{{ package_mirror }}/tumbleweed/repo/oss/"
|
|
when: ansible_distribution | search("Tumbleweed")
|
|
|
|
- name: Install Suse repository files
|
|
become: yes
|
|
template:
|
|
dest: "/{{ item }}"
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: "{{ item }}.j2"
|
|
with_items:
|
|
- etc/zypp/repos.d/repo-oss.repo
|
|
notify:
|
|
- Update zypper cache
|
|
|
|
- name: Install openSUSE Leap Update repository
|
|
become: yes
|
|
template:
|
|
dest: /etc/zypp/repos.d/repo-update.repo
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: etc/zypp/repos.d/repo-update.repo.j2
|
|
notify:
|
|
- Update zypper cache
|
|
when: not ansible_distribution | search("Tumbleweed")
|