Amritanshu
166af2aaa3
Chore: Moved to ruff and sorted and cleaned using it. Chore: Ansible file moved to roles based. Chore: Upgraded some dependencies
22 lines
456 B
YAML
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"
|