added provision file

This commit is contained in:
CHIEFSOFT\ameye
2025-01-21 16:25:43 -05:00
parent 30f0815114
commit ff9ad8615b
3 changed files with 107 additions and 2 deletions
+20 -1
View File
@@ -1 +1,20 @@
A000001
---
- hosts: WHAT_HOST_IN_USE
tasks:
- name: Creates directory DESTINATION_FOLDER
ansible.builtin.file:
path: DESTINATION_FOLDER
state: directory
mode: 0775
recurse: yes
- name: Set up docker-compose file
template:
src: "WHAT_PART_LOCAL/docker-compose.yml"
dest: "DESTINATION_FOLDER"
- name: docker compose up
shell:
chdir: "DESTINATION_FOLDER/"
cmd: docker-compose up -d