Files
AnsibleTest/A000003.yml
T
CHIEFSOFT\ameye 78a4b35e1a rsync://
2025-01-29 13:36:04 -05:00

26 lines
750 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: Set up docker-compose file
synchronize:
src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
dest: "{{DESTINATION_FOLDER}}"
rsync_opts:
- "-e ssh -i /home/semaphore/.ssh/ansible_worker"
# template:
# src: "{{WHAT_PART_REMOTE}}/docker-compose.yml"
# dest: "{{DESTINATION_FOLDER}}"
- name: docker compose up
shell:
chdir: "{{DESTINATION_FOLDER}}/"
cmd: docker-compose up -d