
Copy ansible-lint configuration from kolla-ansible as a starting point. Also replace alint tox job by ansible-lint. Fix various issues found by ansible-lint to make it pass with the current set of rules. Change-Id: I1d6173caadbcf249330512e170af8095464f1237
18 lines
464 B
YAML
18 lines
464 B
YAML
---
|
|
- name: Ensure docker registry container is stopped
|
|
kayobe_container:
|
|
name: "{{ item.value.container_name }}"
|
|
state: "absent"
|
|
with_dict: "{{ docker_registry_services }}"
|
|
|
|
- name: Check whether docker registry volumes are absent
|
|
kayobe_container_volume:
|
|
name: "{{ volume }}"
|
|
state: absent
|
|
with_subelements:
|
|
- "{{ docker_registry_services }}"
|
|
- volumes
|
|
when: "'/' not in volume"
|
|
vars:
|
|
volume: "{{ item.1.split(':')[0] }}"
|