diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2019-05-14 12:12:38 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2019-05-14 12:15:22 +0200 |
commit | 280ef8da90cf2bab9ddf7b3df78b12a3b2cf6040 (patch) | |
tree | 597bed846135e77b43477a300758fa7b3f189a95 /ansible | |
parent | e7fd64586455a7c1270c1b1c846c19e030780315 (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.yml | 2 |
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: |