Provisoning upgades

This commit is contained in:
CHIEFSOFT\ameye
2025-01-19 20:16:22 -05:00
parent f4d1b12c5b
commit 657b26c548
4 changed files with 42 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
[A000001_SERVER]
172.16.4.92
[A000002_SERVER]
172.16.4.92
[A000003_SERVER]
172.16.4.91
[A000004_SERVER]
172.16.4.91
[A000005_SERVER]
172.16.4.95
+3 -10
View File
@@ -1,20 +1,13 @@
---
- hosts: WHAT_HOST_IN_USE
vars_files:
- vars/main.yml
tasks:
- name: Set up docker-compose file
template:
src: "files/docker-compose.yml"
dest: "/home/{{ admin_user }}/wordpress/"
- name: Set permission for docker daemon
file:
path: /var/run/docker.sock
mode: '0770'
src: "WHAT_PART_FOLDER/docker-compose.yml"
dest: "DESTINATION_FOLDER"
- name: docker compose up
shell:
chdir: "/home/{{ admin_user }}/wordpress/"
chdir: "DESTINATION_FOLDER/"
cmd: docker-compose up -d