local files
This commit is contained in:
+5
-5
@@ -17,13 +17,13 @@
|
|||||||
# register: local_dir
|
# register: local_dir
|
||||||
# delegate_to: localhost
|
# delegate_to: localhost
|
||||||
|
|
||||||
- name: Find out playbooks path
|
- name: INFO - Find out playbooks path
|
||||||
shell: pwd
|
shell: pwd
|
||||||
register: playbook_path_output
|
register: playbook_path_output
|
||||||
- debug: var=playbook_path_output.stdout
|
- debug: var=playbook_path_output.stdout
|
||||||
|
|
||||||
- name: Local Dicrectory for Docker Compose File
|
- name: Local Dicrectory for Docker Compose File ON LOCAL
|
||||||
shell: mkdir /home/chiefsoft/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
||||||
|
|
||||||
|
|
||||||
# # - name: Copy file from 10.10.10.13 to Local Directory
|
# # - name: Copy file from 10.10.10.13 to Local Directory
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
# - name:
|
# - name:
|
||||||
# shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
# shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
||||||
|
|
||||||
- name: Copy file from 10.10.10.13 to Local Directory
|
- name: Copy file from 10.10.10.13 to LOCAL Directory
|
||||||
shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/chiefsoft/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
||||||
vars:
|
vars:
|
||||||
password_variable: "May12002!x" # Or, preferably, use Ansible Vault
|
password_variable: "May12002!x" # Or, preferably, use Ansible Vault
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -17,13 +17,13 @@
|
|||||||
# register: local_dir
|
# register: local_dir
|
||||||
# delegate_to: localhost
|
# delegate_to: localhost
|
||||||
|
|
||||||
- name: Find out playbooks path
|
- name: INFO - Find out playbooks path
|
||||||
shell: pwd
|
shell: pwd
|
||||||
register: playbook_path_output
|
register: playbook_path_output
|
||||||
- debug: var=playbook_path_output.stdout
|
- debug: var=playbook_path_output.stdout
|
||||||
|
|
||||||
- name: Local Dicrectory for Docker Compose File
|
- name: Local Dicrectory for Docker Compose File ON LOCAL
|
||||||
shell: mkdir /home/chiefsoft/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
||||||
|
|
||||||
|
|
||||||
# # - name: Copy file from 10.10.10.13 to Local Directory
|
# # - name: Copy file from 10.10.10.13 to Local Directory
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
# - name:
|
# - name:
|
||||||
# shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
# shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}
|
||||||
|
|
||||||
- name: Copy file from 10.10.10.13 to Local Directory
|
- name: Copy file from 10.10.10.13 to LOCAL Directory
|
||||||
shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/chiefsoft/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml
|
||||||
vars:
|
vars:
|
||||||
password_variable: "May12002!x" # Or, preferably, use Ansible Vault
|
password_variable: "May12002!x" # Or, preferably, use Ansible Vault
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user