Fix add repositories in RedHat and Suse
These tasks should be used with become like Debian.yaml, otherwise error will occurred like this: [Errno 13] Permission denied: '/etc/yum.repos.d/test.repo' Change-Id: I9c6f0132536500d36ba0098b635b1858e05d7ccf
This commit is contained in:
parent
9e20909819
commit
1242a98137
@ -30,6 +30,7 @@
|
||||
path: '{{ gpg_key_tempdir.path }}'
|
||||
|
||||
- name: Add repositories
|
||||
become: true
|
||||
yum_repository:
|
||||
name: "{{ zj_item['name'] }}"
|
||||
file: "{{ zj_item['file'] | default(zj_item['name']) }}"
|
||||
|
@ -30,6 +30,7 @@
|
||||
path: '{{ gpg_key_tempdir.path }}'
|
||||
|
||||
- name: Add repositories
|
||||
become: true
|
||||
zypper_repository:
|
||||
name: "{{ zj_item['name'] }}"
|
||||
description: "{{ zj_item['description'] | default(omit) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user