parameterize directories
This commit is contained in:
parent
5bf6d7acbc
commit
cd17ed372c
21 changed files with 88 additions and 66 deletions
|
@ -1,9 +1,9 @@
|
|||
- name: Clone pizzeria repository
|
||||
git:
|
||||
repo: "{{ pizzeria.git_origin }}"
|
||||
dest: /srv/pizzeria
|
||||
repo: "{{ git_origin }}"
|
||||
dest: "{{ service_dir }}"
|
||||
- name: Start the Docker Compose
|
||||
docker_compose:
|
||||
project_src: /srv/pizzeria
|
||||
project_src: "{{ service_dir }}"
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
pizzeria:
|
||||
git_origin: https://git.pizzapim.nl/pim/pizzeria.git
|
||||
service_name: pizzeria
|
||||
data_dir: "{{ base_data_dir }}/{{ service_name }}"
|
||||
service_dir: "{{ base_service_dir }}/{{ service_name }}"
|
||||
git_origin: https://git.pizzapim.nl/pim/pizzeria.git
|
||||
|
|
Reference in a new issue