Skip to content

Commit

Permalink
Fix for molecule >= 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-hellings committed Jul 9, 2020
1 parent c883d28 commit 7bc3d63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 3 additions & 4 deletions roles/molecule_docker_ci/tasks/absent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
with_items: "{{ server.results }}"

- name: Delete docker network(s)
docker_network:
name: "{{ item }}"
state: absent
with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks }}"
action: docker_network
args: "{{ item }}"
with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks('absent') }}"
9 changes: 5 additions & 4 deletions roles/molecule_docker_ci/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
| count >= 0
- name: Create docker network(s)
docker_network:
name: "{{ item }}"
state: present
with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks }}"
action: docker_network
args: "{{ item }}"
with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks('present', molecule_labels) }}"
loop_control:
label: "{{ item.name }}"

- name: Create molecule instance(s)
docker_container:
Expand Down

0 comments on commit 7bc3d63

Please sign in to comment.