summaryrefslogtreecommitdiffstats
path: root/distro/tests/ansible-roles/obs_repos/tasks/openSUSE_Leap.yaml
blob: 84ab5a97327c5b32f12391d89727358f198c417e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Install python-xml dependency for zypper_repository
  shell: zypper install -y python-xml
  args:
    warn: false

- name: Add upstream repo(s)
  zypper_repository:
    repo: "{{ obs_repofile_url }}"
    state: present
    disable_gpg_check: true  # auto_import_keys is broken
  with_items: "{{ repos }}"

- name: Refresh all repositories
  zypper_repository:
    repo: '*'
    runrefresh: true
  failed_when: false