Changed docker to use a hosts file with various var files and to use roles.

This commit is contained in:
tanshu committed 2023-07-23 08:46:45 +05:30
1 parent 16f29c4139
commit 26310dfc42
17 files changed
+103 -298

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
---
# 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"