barker/docker/roles/upload/tasks/main.yaml

22 lines
460 B
YAML
Raw Normal View History

---
# 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:
src: "{{ env_file }}"
dest: "/var/lib/{{ host_directory }}/.env"