file path

This commit is contained in:
CHIEFSOFT\ameye
2025-07-16 20:12:44 -04:00
parent 44bfc07f5b
commit 9781dc05f7
+17 -14
View File
@@ -10,24 +10,27 @@
mode: 0775
recurse: yes
- name: "Creates local directory for composer {{ ANSIBLE_TRANSPORT_PATH }}"
delegate_to: localhost
path: "/home/semaphore/parts/{{ ANSIBLE_TRANSPORT_PATH }}"
state: directory
mode: 0775
recurse: yes
# - name: "Creates local directory for composer {{ ANSIBLE_TRANSPORT_PATH }}"
# delegate_to: localhost
# path: "/home/semaphore/parts/{{ ANSIBLE_TRANSPORT_PATH }}"
# state: directory
# mode: 0775
# recurse: yes
- name: Copy file from machine1 to machine2
shell: scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
# - name: Copy file from machine1 to machine2
# shell: sshpass -p '{{ RSYNC_PASSWORD }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
- name: Copy composers file locally up docker-compose file
delegate_to: localhost
# environment:
# RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
synchronize:
src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
dest: "/home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}"
tags: download,local
# - name: Copy composers file locally up docker-compose file
# delegate_to: localhost
# # environment:
# # RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
# synchronize:
# src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
# dest: "/home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}"
# tags: download,local
- name: Set up remote docker-compose file
template: