summaryrefslogtreecommitdiffstats
path: root/ansible/roles/package-repository/tasks
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-03-22 15:37:39 +0200
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-04-16 08:23:41 +0300
commitb3acc41fd78367e5bed759dc914e6f0f93d37efe (patch)
tree162e8818f4a745456c02fda59fe2d30273e776b2 /ansible/roles/package-repository/tasks
parent52eb50721e990e277ed8729225faff305dee11da (diff)
Molecule tests for package-repository role
Issue-ID: OOM-1755 Change-Id: Iac20072200f24a3102c9ed2edf5c5aa8054dd9c2 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'ansible/roles/package-repository/tasks')
-rw-r--r--ansible/roles/package-repository/tasks/main.yml5
1 files changed, 1 insertions, 4 deletions
diff --git a/ansible/roles/package-repository/tasks/main.yml b/ansible/roles/package-repository/tasks/main.yml
index 4949345a..599e1052 100644
--- a/ansible/roles/package-repository/tasks/main.yml
+++ b/ansible/roles/package-repository/tasks/main.yml
@@ -5,7 +5,6 @@
path: /etc/resolv.conf
state: present
insertbefore: BOF
- become: true
- name: Disable all OS default repositories
block:
@@ -20,7 +19,7 @@
- name: Backup repo files
copy:
- remote_src: yes
+ remote_src: true
src: "{{ item.path }}"
dest: "{{ item.path }}.disabled"
loop: "{{ repo_files.files }}"
@@ -32,7 +31,6 @@
state: absent
loop: "{{ repo_files.files }}"
when: "(item.path | basename | splitext)[0] not in package_repositories_names"
- become: yes
- name: Add application offline package repository
yum_repository:
@@ -44,4 +42,3 @@
enabled: "{{ item.enabled | default(false) }}"
state: "{{ item.state | default('present') }}"
loop: "{{ package_repositories }}"
- become: true