From 431bf8feebf085d4ec2da31e9387ab2ef9bcd654 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 26 Jan 2025 08:26:03 -0500 Subject: [PATCH] added params --- A000001.yml | 10 +++++----- A000002.yml | 21 ++++++++++++++++++++- A000003.yml | 10 +++++----- A000004.yml | 10 +++++----- A000005.yml | 21 ++++++++++++++++++++- 5 files changed, 55 insertions(+), 17 deletions(-) diff --git a/A000001.yml b/A000001.yml index cbd54b2..2155574 100644 --- a/A000001.yml +++ b/A000001.yml @@ -1,20 +1,20 @@ --- -- hosts: WHAT_HOST_IN_USE +- hosts: "{{ WHAT_HOST_IN_USE }}" tasks: - name: Creates directory DESTINATION_FOLDER ansible.builtin.file: - path: DESTINATION_FOLDER + path: "{{ DESTINATION_FOLDER }}" state: directory mode: 0775 recurse: yes - name: Set up docker-compose file template: - src: "WHAT_PART_LOCAL/docker-compose.yml" - dest: "DESTINATION_FOLDER" + src: "{{WHAT_PART_LOCAL}}/docker-compose.yml" + dest: "{{DESTINATION_FOLDER}}" - name: docker compose up shell: - chdir: "DESTINATION_FOLDER/" + chdir: "{{DESTINATION_FOLDER}}/" cmd: docker-compose up -d \ No newline at end of file diff --git a/A000002.yml b/A000002.yml index 7769c7e..6d945e4 100644 --- a/A000002.yml +++ b/A000002.yml @@ -1 +1,20 @@ -A000002 \ No newline at end of file +--- +- hosts: "{{ WHAT_HOST_IN_USE }}" + + tasks: + - name: Creates directory DESTINATION_FOLDER + ansible.builtin.file: + path: "{{ DESTINATION_FOLDER }}" + state: directory + mode: 0775 + recurse: yes + + - name: Set up docker-compose file + template: + src: "{{WHAT_PART_LOCAL}}/docker-compose.yml" + dest: "{{DESTINATION_FOLDER}}" + + - name: docker compose up + shell: + chdir: "{{DESTINATION_FOLDER}}/" + cmd: docker-compose up -d \ No newline at end of file diff --git a/A000003.yml b/A000003.yml index cbd54b2..2155574 100644 --- a/A000003.yml +++ b/A000003.yml @@ -1,20 +1,20 @@ --- -- hosts: WHAT_HOST_IN_USE +- hosts: "{{ WHAT_HOST_IN_USE }}" tasks: - name: Creates directory DESTINATION_FOLDER ansible.builtin.file: - path: DESTINATION_FOLDER + path: "{{ DESTINATION_FOLDER }}" state: directory mode: 0775 recurse: yes - name: Set up docker-compose file template: - src: "WHAT_PART_LOCAL/docker-compose.yml" - dest: "DESTINATION_FOLDER" + src: "{{WHAT_PART_LOCAL}}/docker-compose.yml" + dest: "{{DESTINATION_FOLDER}}" - name: docker compose up shell: - chdir: "DESTINATION_FOLDER/" + chdir: "{{DESTINATION_FOLDER}}/" cmd: docker-compose up -d \ No newline at end of file diff --git a/A000004.yml b/A000004.yml index cbd54b2..2155574 100644 --- a/A000004.yml +++ b/A000004.yml @@ -1,20 +1,20 @@ --- -- hosts: WHAT_HOST_IN_USE +- hosts: "{{ WHAT_HOST_IN_USE }}" tasks: - name: Creates directory DESTINATION_FOLDER ansible.builtin.file: - path: DESTINATION_FOLDER + path: "{{ DESTINATION_FOLDER }}" state: directory mode: 0775 recurse: yes - name: Set up docker-compose file template: - src: "WHAT_PART_LOCAL/docker-compose.yml" - dest: "DESTINATION_FOLDER" + src: "{{WHAT_PART_LOCAL}}/docker-compose.yml" + dest: "{{DESTINATION_FOLDER}}" - name: docker compose up shell: - chdir: "DESTINATION_FOLDER/" + chdir: "{{DESTINATION_FOLDER}}/" cmd: docker-compose up -d \ No newline at end of file diff --git a/A000005.yml b/A000005.yml index 6827259..6d945e4 100644 --- a/A000005.yml +++ b/A000005.yml @@ -1 +1,20 @@ -A000005 \ No newline at end of file +--- +- hosts: "{{ WHAT_HOST_IN_USE }}" + + tasks: + - name: Creates directory DESTINATION_FOLDER + ansible.builtin.file: + path: "{{ DESTINATION_FOLDER }}" + state: directory + mode: 0775 + recurse: yes + + - name: Set up docker-compose file + template: + src: "{{WHAT_PART_LOCAL}}/docker-compose.yml" + dest: "{{DESTINATION_FOLDER}}" + + - name: docker compose up + shell: + chdir: "{{DESTINATION_FOLDER}}/" + cmd: docker-compose up -d \ No newline at end of file