2023-07-23 03:16:07 +00:00
|
|
|
---
|
|
|
|
# Tasks for upload role
|
|
|
|
- name: Ensure Temporary Directory exists
|
|
|
|
file:
|
|
|
|
path: "/tmp/{{ host_directory }}"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Copy dockerfile
|
|
|
|
synchronize:
|
|
|
|
src: app
|
|
|
|
dest: "/tmp/{{ host_directory }}"
|
|
|
|
|
|
|
|
- name: Ensure Host Directory exists
|
|
|
|
file:
|
|
|
|
path: "/var/lib/{{ host_directory }}"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Upload the .env file
|
|
|
|
template:
|
2023-08-28 05:33:00 +00:00
|
|
|
src: "files/.env"
|
2023-07-23 03:16:07 +00:00
|
|
|
dest: "/var/lib/{{ host_directory }}/.env"
|