Make playbooks idempotent
removing docker-registry also removed docker-distribution, so the playbook wasn't idempotent.
This commit is contained in:
parent
cb2813534e
commit
cd1de0d7c8
|
@ -1,12 +1,6 @@
|
|||
---
|
||||
# tasks file for ansible-role-container-registry
|
||||
|
||||
# Required to have a v2 registry
|
||||
- name: ensure the Docker Registry is absent
|
||||
yum:
|
||||
name: docker-registry
|
||||
state: absent
|
||||
|
||||
- name: ensure docker-distribution is installed
|
||||
yum:
|
||||
name: docker-distribution
|
||||
|
|
Loading…
Reference in New Issue