diff --git a/src/molecule_docker/playbooks/create.yml b/src/molecule_docker/playbooks/create.yml index 3f5acf4..0a495c7 100644 --- a/src/molecule_docker/playbooks/create.yml +++ b/src/molecule_docker/playbooks/create.yml @@ -82,6 +82,13 @@ - not item.pre_build_image | default(false) register: docker_images + - name: Create docker network(s) + ansible.builtin.include_tasks: tasks/create_network.yml + with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks(molecule_labels) }}" + loop_control: + label: "{{ item.name }}" + no_log: false + - name: Build an Ansible compatible image (new) # noqa: no-handler when: - platforms.changed or docker_images.results | map(attribute='images') | select('equalto', []) | list | count >= 0 @@ -111,13 +118,6 @@ retries: 3 delay: 30 - - name: Create docker network(s) - ansible.builtin.include_tasks: tasks/create_network.yml - with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks(molecule_labels) }}" - loop_control: - label: "{{ item.name }}" - no_log: false - - name: Determine the CMD directives ansible.builtin.set_fact: command_directives_dict: >-