From d084b8ce1ec7cdccd9c05d2c2dc3b6cb63225ae2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 17 Jul 2025 21:09:42 -0400 Subject: [PATCH] aoo 1 fe --- A000001.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/A000001.yml b/A000001.yml index 75db8a8..0541e98 100644 --- a/A000001.yml +++ b/A000001.yml @@ -9,12 +9,22 @@ mode: 0775 recurse: yes + # - name: Local Dicrectory for Docker Compose File + # ansible.builtin.file: + # # path: /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}} + # path: parts/{{ANSIBLE_TRANSPORT_PATH}} + # state: directory + # register: local_dir + # delegate_to: localhost + + - name: Find out playbooks path + shell: pwd + register: playbook_path_output + - debug: var=playbook_path_output.stdout + - 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 + 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 @@ -22,13 +32,13 @@ # 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 + shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml /home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml vars: password_variable: "May12002!x" # Or, preferably, use Ansible Vault - name: Set up docker-compose file template: - src: "/home/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml" + src: "/home/chiefsoft/semaphore/parts/{{ANSIBLE_TRANSPORT_PATH}}/docker-compose.yml" dest: "{{DESTINATION_FOLDER}}" - name: docker compose up