Commit f8da7e7e authored by ∞'s avatar 💻

Save ephemeral deployments for further deletion

parent b7fa6c0a
......@@ -107,6 +107,18 @@
build: '{{ build|default("no") }}'
state: '{{ state|default("present") }}'
- name: Create docker-compose definition backup directory
when: project is defined
file:
path: '{{ ansible_user_dir + "/.yourlabs.compose/" + project }}'
state: directory
- name: Create docker-compose definition backup
when: project is defined
file:
path: '{{ ansible_user_dir + "/.yourlabs.compose/" + project + "/docker-compose.yml" }}'
content: '{{ compose_content }}'
- name: Show logs
shell: docker-compose {% if project is defined %}-f - -p {{ project }}{% endif %} logs
args:
......
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