file path
This commit is contained in:
+17
-14
@@ -10,24 +10,27 @@
|
|||||||
mode: 0775
|
mode: 0775
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
- name: "Creates local directory for composer {{ ANSIBLE_TRANSPORT_PATH }}"
|
# - name: "Creates local directory for composer {{ ANSIBLE_TRANSPORT_PATH }}"
|
||||||
delegate_to: localhost
|
# delegate_to: localhost
|
||||||
path: "/home/semaphore/parts/{{ ANSIBLE_TRANSPORT_PATH }}"
|
# path: "/home/semaphore/parts/{{ ANSIBLE_TRANSPORT_PATH }}"
|
||||||
state: directory
|
# state: directory
|
||||||
mode: 0775
|
# mode: 0775
|
||||||
recurse: yes
|
# 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
|
# - 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
|
# 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
|
# - name: Copy composers file locally up docker-compose file
|
||||||
delegate_to: localhost
|
# delegate_to: localhost
|
||||||
# environment:
|
# # environment:
|
||||||
# RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
|
# # RSYNC_PASSWORD: "{{ RSYNC_PASSWORD }}"
|
||||||
synchronize:
|
# synchronize:
|
||||||
src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
|
# src: "rsync://{{WHAT_PART_REMOTE}}/docker-compose.yml"
|
||||||
dest: "/home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}"
|
# dest: "/home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}"
|
||||||
tags: download,local
|
# 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