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

Commit

Permalink
fix: make sure directory for async is correctly set (#178)
Browse files Browse the repository at this point in the history
* fix: make sure directory for async is correctly set

* style: fix lint
  • Loading branch information
gardar authored Sep 29, 2022
1 parent 63ae04b commit ccdd51d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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

0 comments on commit ccdd51d

Please sign in to comment.