From 66879bf5fbd4a6af6010dd2349ceb5f1eeb2ae90 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 11 Oct 2025 11:50:43 -0400 Subject: [PATCH] A000 launch --- A000006.yml | 20 ++++++++++++++++++++ A000006_repair.yml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 A000006.yml create mode 100644 A000006_repair.yml diff --git a/A000006.yml b/A000006.yml new file mode 100644 index 0000000..36c2eb0 --- /dev/null +++ b/A000006.yml @@ -0,0 +1,20 @@ +--- +- hosts: "{{ WHAT_HOST_IN_USE }}" + + tasks: + - name: "003 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 diff --git a/A000006_repair.yml b/A000006_repair.yml new file mode 100644 index 0000000..36c2eb0 --- /dev/null +++ b/A000006_repair.yml @@ -0,0 +1,20 @@ +--- +- hosts: "{{ WHAT_HOST_IN_USE }}" + + tasks: + - name: "003 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