Fix issue with when statement in docker-registry.yaml.

The when statement was duplicated in the docker-registry
service, plus the equals operator was wrong.

Closes-Bug:#1808974
Change-Id: I1650acfd67b87be18ab03385ce35cccdf708f046
This commit is contained in:
Jose Luis Franco Arza 2018-12-18 13:49:49 +01:00
parent 15d34de247
commit 8b72e4dac0
1 changed files with 1 additions and 2 deletions

View File

@ -67,11 +67,10 @@ outputs:
upgrade_tasks:
- block:
- name: Install docker packages on upgrade if missing
when: step|int == 3
package: name=docker-distribution state=latest
- set_fact: *docker_vars
- name: Reconfigure Docker if needed
include_role:
name: container-registry
tasks_from: docker
when: step|int = 3
when: step|int == 3