Commit db5aeca2 authored by ∞'s avatar 💻

Set home directory prior to creation

parent 165cdb07
......@@ -11,6 +11,11 @@
executable: pip3
delegate_to: localhost
- name: Set home for project
when: project is defined
set_fact:
home: '{{ ansible_user_dir + "/.yourlabs.compose/" + project }}'
- name: Make home directory
when: home is defined
file:
......@@ -72,11 +77,6 @@
name: '{{ item }}'
loop: '{{ external_networks }}'
- name: Set home for project
when: project is defined
set_fact:
home: '{{ ansible_user_dir + "/.yourlabs.compose/" + project }}'
- name: Upload compose file
copy:
content: '{{ compose_content }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment