fis file
This commit is contained in:
+17
-10
@@ -10,17 +10,24 @@
|
|||||||
mode: 0775
|
mode: 0775
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
# - name: Copy file from machine1 to machine2
|
- name: "Creates local directory for composer {{ ANSIBLE_TRANSPORT_PATH }}"
|
||||||
# shell: sshpass -p '{{ RSYNC_PASSWORD }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
ansible.builtin.file:
|
||||||
|
path: "/home/semaphore/parts/{{ ANSIBLE_TRANSPORT_PATH }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0775
|
||||||
|
recurse: yes
|
||||||
|
|
||||||
# - name: Copy composers file locally up docker-compose file
|
# - name: Copy file from machine1 to machine2
|
||||||
# delegate_to: localhost
|
# shell: sshpass -p '{{ RSYNC_PASSWORD }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
||||||
# environment:
|
|
||||||
# RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
|
- name: Copy composers file locally up docker-compose file
|
||||||
# synchronize:
|
delegate_to: localhost
|
||||||
# src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
|
environment:
|
||||||
# dest: "/home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}"
|
RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
|
||||||
# tags: download,local
|
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
|
- name: Set up remote docker-compose file
|
||||||
template:
|
template:
|
||||||
|
|||||||
Reference in New Issue
Block a user