Compare commits
9 commits
d372a6ece6
...
55c9a346b1
Author | SHA1 | Date | |
---|---|---|---|
Víðir Valberg Guðmundsson | 55c9a346b1 | ||
Víðir Valberg Guðmundsson | 9b886a8b64 | ||
Víðir Valberg Guðmundsson | 9e101bff21 | ||
Víðir Valberg Guðmundsson | c57becfa03 | ||
Sam A. | e328c558cf | ||
Sam A. | fa603b07d9 | ||
Sam A. | 67a8c3d1a2 | ||
Sam A. | 439a538c14 | ||
Sam A. | 814a268965 |
|
@ -18,7 +18,7 @@ else
|
||||||
$BASE_CMD --tags setup_services
|
$BASE_CMD --tags setup_services
|
||||||
else
|
else
|
||||||
echo "Deploying services: $2"
|
echo "Deploying services: $2"
|
||||||
$BASE_CMD --tags setup_services --extra-vars "enabled_services=$2"
|
$BASE_CMD --tags setup_services --extra-vars "single_service=$2"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"base")
|
"base")
|
||||||
|
|
|
@ -3,12 +3,11 @@
|
||||||
docker_network:
|
docker_network:
|
||||||
name: external_services
|
name: external_services
|
||||||
|
|
||||||
#- name: setup services
|
|
||||||
# include_tasks: "services/{{ item.value.file }}"
|
|
||||||
# loop: "{{ services | dict2items }}"
|
|
||||||
# when: item.key in enabled_services and item.value.file is defined and item.value.disabled_in_vagrant is not defined
|
|
||||||
|
|
||||||
- name: setup services
|
- name: setup services
|
||||||
include_tasks: "services/{{ services[item].file }}"
|
include_tasks: "services/{{ item.value.file }}"
|
||||||
loop: "{{ enabled_services }}"
|
loop: "{{ services | dict2items }}"
|
||||||
when: item in services and services[item].file is defined and services[item].disabled_in_vagrant is not defined
|
when: single_service is not defined and item.value.file is defined and item.value.disabled_in_vagrant is not defined
|
||||||
|
|
||||||
|
- name: setup single service
|
||||||
|
include_tasks: "services/{{ services[single_service].file }}"
|
||||||
|
when: single_service is defined and single_service in services and services[single_service].file is defined and services[single_service].disabled_in_vagrant is not defined
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- name: Copy Rallly environment file
|
- name: Copy Rallly environment file
|
||||||
template:
|
template:
|
||||||
src: files/configs/rallly/env_file
|
src: files/configs/rallly/env_file.j2
|
||||||
dest: "{{ services.rallly.volume_folder }}/env_file"
|
dest: "{{ services.rallly.volume_folder }}/env_file"
|
||||||
|
|
||||||
- name: Set up Rallly
|
- name: Set up Rallly
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: setup restic backup
|
- name: Setup restic backup
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: restic_backup
|
project_name: restic_backup
|
||||||
pull: yes
|
pull: true
|
||||||
definition:
|
definition:
|
||||||
version: '3.6'
|
version: '3.6'
|
||||||
services:
|
services:
|
||||||
|
|
Loading…
Reference in a new issue