barker/docker/roles/upload/tasks/main.yaml
Amritanshu 93b1b8840d Feature: Updated the frank dockerfile to properly install python poetry
Feature: Updated the frank playbook to allow user to be changed from pi
Chore: Refactored the various env files to use single file and multiple var files.
2023-08-28 11:03:00 +05:30

22 lines
456 B
YAML

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