SUSE: Refresh zypper repositories if necessary
When we change the status of the repositories it's best if we refresh the metadata in order to ensure that everything is in a sensible state. Moreover, we shouldn't autorefresh the 'repo-oss' repository since it's frozen right after the openSUSE release. Change-Id: I1ca13d85f8a275ff93c8c12fab1833dc2e50f6fb
This commit is contained in:
parent
5a796dcd75
commit
05c7f09d18
@ -79,3 +79,9 @@
|
||||
until: _adding_repo | success
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: Refresh repositories if necessary
|
||||
zypper_repository:
|
||||
repo: '*'
|
||||
runrefresh: yes
|
||||
when: _adding_repo | changed
|
||||
|
@ -99,9 +99,12 @@ _package_repos:
|
||||
- name: "repo-oss"
|
||||
repo: "{{ opensuse_repo_oss_url }}"
|
||||
auto_import_keys: yes
|
||||
autorefresh: no
|
||||
- name: "repo-update"
|
||||
repo: "{{ opensuse_repo_update_url }}"
|
||||
auto_import_keys: yes
|
||||
autorefresh: yes
|
||||
- name: "OBS:Cloud:OpenStack:Pike"
|
||||
repo: "{{ opensuse_obs_cloud_repo_url }}"
|
||||
auto_import_keys: yes
|
||||
autorefresh: yes
|
||||
|
Loading…
Reference in New Issue
Block a user