From d45606d042a310c8e0c444cb0fe6e0feae0ca65a Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 4 Jul 2026 15:07:04 +0000 Subject: [PATCH] Upload files to "/" --- A000005_repair.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 A000005_repair.yml diff --git a/A000005_repair.yml b/A000005_repair.yml new file mode 100644 index 0000000..1c417e2 --- /dev/null +++ b/A000005_repair.yml @@ -0,0 +1,20 @@ +--- +- hosts: "{{ WHAT_HOST_IN_USE }}" + + tasks: + - name: "005 Creates directory {{ DESTINATION_FOLDER }}" + ansible.builtin.file: + path: "{{ DESTINATION_FOLDER }}" + state: directory + mode: 0775 + recurse: yes + + - name: Copy file from 10.10.10.13 to LOCAL Directory + shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml {{DESTINATION_FOLDER}}/docker-compose.yml + vars: + password_variable: "May12002!x" # Or, preferably, use Ansible Vault + + - name: docker compose up + shell: + chdir: "{{DESTINATION_FOLDER}}/" + cmd: docker-compose up -d \ No newline at end of file