Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

fix: make sure directory for async is correctly set #178

Merged
merged 2 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/molecule_docker/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
molecule_labels:
owner: molecule
tasks:
- name: Set async_dir for HOME env
ansible.builtin.set_fact:
ansible_async_dir: "{{ lookup('env', 'HOME') }}/.ansible_async/"
when: (lookup('env', 'HOME'))

- name: Log into a Docker registry
community.docker.docker_login:
username: "{{ item.registry.credentials.username }}"
Expand Down
6 changes: 5 additions & 1 deletion src/molecule_docker/playbooks/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
gather_facts: false
no_log: "{{ molecule_no_log }}"
tasks:
- name: Set async_dir for HOME env
ansible.builtin.set_fact:
ansible_async_dir: "{{ lookup('env', 'HOME') }}/.ansible_async/"
when: (lookup('env', 'HOME'))

- name: Destroy molecule instance(s)
community.docker.docker_container:
name: "{{ item.name }}"
Expand Down Expand Up @@ -35,7 +40,6 @@
loop_control:
label: "{{ item.item.name }}"


- name: Delete docker networks(s)
include_tasks: tasks/delete_network.yml
loop: "{{ molecule_yml.platforms | molecule_get_docker_networks() }}"
Expand Down