added params
This commit is contained in:
+5
-5
@@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
- hosts: WHAT_HOST_IN_USE
|
- hosts: "{{ WHAT_HOST_IN_USE }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Creates directory DESTINATION_FOLDER
|
- name: Creates directory DESTINATION_FOLDER
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: DESTINATION_FOLDER
|
path: "{{ DESTINATION_FOLDER }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0775
|
mode: 0775
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
- name: Set up docker-compose file
|
- name: Set up docker-compose file
|
||||||
template:
|
template:
|
||||||
src: "WHAT_PART_LOCAL/docker-compose.yml"
|
src: "{{WHAT_PART_LOCAL}}/docker-compose.yml"
|
||||||
dest: "DESTINATION_FOLDER"
|
dest: "{{DESTINATION_FOLDER}}"
|
||||||
|
|
||||||
- name: docker compose up
|
- name: docker compose up
|
||||||
shell:
|
shell:
|
||||||
chdir: "DESTINATION_FOLDER/"
|
chdir: "{{DESTINATION_FOLDER}}/"
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
+20
-1
@@ -1 +1,20 @@
|
|||||||
A000002
|
---
|
||||||
|
- 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
|
||||||
+5
-5
@@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
- hosts: WHAT_HOST_IN_USE
|
- hosts: "{{ WHAT_HOST_IN_USE }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Creates directory DESTINATION_FOLDER
|
- name: Creates directory DESTINATION_FOLDER
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: DESTINATION_FOLDER
|
path: "{{ DESTINATION_FOLDER }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0775
|
mode: 0775
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
- name: Set up docker-compose file
|
- name: Set up docker-compose file
|
||||||
template:
|
template:
|
||||||
src: "WHAT_PART_LOCAL/docker-compose.yml"
|
src: "{{WHAT_PART_LOCAL}}/docker-compose.yml"
|
||||||
dest: "DESTINATION_FOLDER"
|
dest: "{{DESTINATION_FOLDER}}"
|
||||||
|
|
||||||
- name: docker compose up
|
- name: docker compose up
|
||||||
shell:
|
shell:
|
||||||
chdir: "DESTINATION_FOLDER/"
|
chdir: "{{DESTINATION_FOLDER}}/"
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
+5
-5
@@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
- hosts: WHAT_HOST_IN_USE
|
- hosts: "{{ WHAT_HOST_IN_USE }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Creates directory DESTINATION_FOLDER
|
- name: Creates directory DESTINATION_FOLDER
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: DESTINATION_FOLDER
|
path: "{{ DESTINATION_FOLDER }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0775
|
mode: 0775
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
- name: Set up docker-compose file
|
- name: Set up docker-compose file
|
||||||
template:
|
template:
|
||||||
src: "WHAT_PART_LOCAL/docker-compose.yml"
|
src: "{{WHAT_PART_LOCAL}}/docker-compose.yml"
|
||||||
dest: "DESTINATION_FOLDER"
|
dest: "{{DESTINATION_FOLDER}}"
|
||||||
|
|
||||||
- name: docker compose up
|
- name: docker compose up
|
||||||
shell:
|
shell:
|
||||||
chdir: "DESTINATION_FOLDER/"
|
chdir: "{{DESTINATION_FOLDER}}/"
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
+20
-1
@@ -1 +1,20 @@
|
|||||||
A000005
|
---
|
||||||
|
- 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
|
||||||
Reference in New Issue
Block a user