diff --git a/A000001.yml b/A000001.yml index 1ec9198..75db8a8 100644 --- a/A000001.yml +++ b/A000001.yml @@ -9,10 +9,17 @@ mode: 0775 recurse: yes - # - name: Copy file from 10.10.10.13 to Local Directory - # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml - - name: Local Dicrectory for Docker Compose File - shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Local Dicrectory for Docker Compose File + ansible.builtin.file: + path: /home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + state: directory + register: local_dir + delegate_to: localhost + + # # - name: Copy file from 10.10.10.13 to Local Directory + # # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml + # - name: + # shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} - name: Copy file from 10.10.10.13 to Local Directory shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml diff --git a/A000002.yml b/A000002.yml index 2dedb59..48edbdb 100644 --- a/A000002.yml +++ b/A000002.yml @@ -9,10 +9,17 @@ mode: 0775 recurse: yes - # - name: Copy file from 10.10.10.13 to Local Directory - # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml - - name: Local Dicrectory for Docker Compose File - shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Local Dicrectory for Docker Compose File + ansible.builtin.file: + path: /home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + state: directory + register: local_dir + delegate_to: localhost + + # # - name: Copy file from 10.10.10.13 to Local Directory + # # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml + # - name: + # shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} - name: Copy file from 10.10.10.13 to Local Directory shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml diff --git a/A000003.yml b/A000003.yml index 3ba6cd1..df35ad7 100644 --- a/A000003.yml +++ b/A000003.yml @@ -9,10 +9,18 @@ mode: 0775 recurse: yes - # - name: Copy file from 10.10.10.13 to Local Directory - # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml - - name: Local Dicrectory for Docker Compose File - shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Local Dicrectory for Docker Compose File + ansible.builtin.file: + path: /home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + state: directory + register: local_dir + delegate_to: localhost + + # # - name: Copy file from 10.10.10.13 to Local Directory + # # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml + # - name: + # shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Copy file from 10.10.10.13 to Local Directory shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml diff --git a/A000004.yml b/A000004.yml index b0ada9e..75f8f9a 100644 --- a/A000004.yml +++ b/A000004.yml @@ -8,11 +8,19 @@ state: directory mode: 0775 recurse: yes + + - name: Local Dicrectory for Docker Compose File + ansible.builtin.file: + path: /home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + state: directory + register: local_dir + delegate_to: localhost + + # # - name: Copy file from 10.10.10.13 to Local Directory + # # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml + # - name: + # shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} - # - name: Copy file from 10.10.10.13 to Local Directory - # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml - - name: Local Dicrectory for Docker Compose File - shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} - name: Copy file from 10.10.10.13 to Local Directory shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml diff --git a/A000005.yml b/A000005.yml index 7ebe0ac..f01c5ad 100644 --- a/A000005.yml +++ b/A000005.yml @@ -9,10 +9,18 @@ mode: 0775 recurse: yes - # - name: Copy file from 10.10.10.13 to Local Directory - # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml - - name: Local Dicrectory for Docker Compose File - shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Local Dicrectory for Docker Compose File + ansible.builtin.file: + path: /home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + state: directory + register: local_dir + delegate_to: localhost + + # # - name: Copy file from 10.10.10.13 to Local Directory + # # shell: scp ~/.ssh/id_rsa.pub {{WHAT_PART_REMOTE}}/docker-compose.yml /home/semaphore/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml + # - name: + # shell: mkdir /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + - name: Copy file from 10.10.10.13 to Local Directory shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml