Files
AnsibleTest/A000003.yml
T
CHIEFSOFT\ameye 608487ee96 fime move path
2025-01-29 13:56:24 -05:00

31 lines
931 B
YAML

---
- hosts: "{{ WHAT_HOST_IN_USE }}"
tasks:
- name: "Creates directory {{ DESTINATION_FOLDER }}"
ansible.builtin.file:
path: "{{ DESTINATION_FOLDER }}"
state: directory
mode: 0775
recurse: yes
- name: Copy composers file locally up docker-compose file
environment:
RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
synchronize:
src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
dest: "{{ANSIBLE_TRANSPORT_PATH}}"
- name: Set up docker-compose file
template:
src: "{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml"
dest: "{{DESTINATION_FOLDER}}"
# template:
# src: "{{WHAT_PART_REMOTE}}/docker-compose.yml"
# dest: "{{DESTINATION_FOLDER}}"
- name: docker compose up
shell:
chdir: "{{DESTINATION_FOLDER}}/"
cmd: docker-compose up -d