summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-05-14 12:12:38 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-05-14 12:15:22 +0200
commit280ef8da90cf2bab9ddf7b3df78b12a3b2cf6040 (patch)
tree597bed846135e77b43477a300758fa7b3f189a95 /ansible
parente7fd64586455a7c1270c1b1c846c19e030780315 (diff)
Fix idempotency issue in 'prepare-docker' role
This adds 'creates' arg to 'command' module used in the role scope. Change-Id: Ib500680114fb267cc08ab52f09fa691738ea4a1a Issue-ID: OOM-1850 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/test/roles/prepare-docker/tasks/docker-packages.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/test/roles/prepare-docker/tasks/docker-packages.yml b/ansible/test/roles/prepare-docker/tasks/docker-packages.yml
index b7e76c55..1239e1a0 100644
--- a/ansible/test/roles/prepare-docker/tasks/docker-packages.yml
+++ b/ansible/test/roles/prepare-docker/tasks/docker-packages.yml
@@ -2,6 +2,8 @@
- name: Download docker related packages
command: yumdownloader --destdir="{{ rpm_dir }}" "{{ docker_ce_rpm }}" "{{ docker_ce_selinux_rpm }}"
+ args:
+ creates: "{{ rpm_dir }}/{{ docker_ce_selinux_rpm }}"
- name: Install docker related packages
yum: