Compare commits
3 commits
55c9a346b1
...
d372a6ece6
Author | SHA1 | Date | |
---|---|---|---|
Víðir Valberg Guðmundsson | d372a6ece6 | ||
Víðir Valberg Guðmundsson | 773df9487c | ||
Víðir Valberg Guðmundsson | 6708653c94 |
|
@ -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 "single_service=$2"
|
$BASE_CMD --tags setup_services --extra-vars "enabled_services=$2"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"base")
|
"base")
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
docker_network:
|
docker_network:
|
||||||
name: external_services
|
name: external_services
|
||||||
|
|
||||||
- name: setup services
|
#- name: setup services
|
||||||
include_tasks: "services/{{ item.value.file }}"
|
# include_tasks: "services/{{ item.value.file }}"
|
||||||
loop: "{{ services | dict2items }}"
|
# loop: "{{ services | dict2items }}"
|
||||||
when: single_service is not defined and item.value.file is defined and item.value.disabled_in_vagrant is not defined
|
# when: item.key in enabled_services and item.value.file is defined and item.value.disabled_in_vagrant is not defined
|
||||||
|
|
||||||
- name: setup single service
|
- name: setup services
|
||||||
include_tasks: "services/{{ services[single_service].file }}"
|
include_tasks: "services/{{ services[item].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
|
loop: "{{ enabled_services }}"
|
||||||
|
when: item in services and services[item].file is defined and services[item].disabled_in_vagrant is not defined
|
||||||
|
|
|
@ -63,4 +63,4 @@
|
||||||
networks:
|
networks:
|
||||||
hedgedoc:
|
hedgedoc:
|
||||||
external_services:
|
external_services:
|
||||||
external: true
|
external: true
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- name: Copy Rallly environment file
|
- name: Copy Rallly environment file
|
||||||
template:
|
template:
|
||||||
src: files/configs/rallly/env_file.j2
|
src: files/configs/rallly/env_file
|
||||||
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: true
|
pull: yes
|
||||||
definition:
|
definition:
|
||||||
version: '3.6'
|
version: '3.6'
|
||||||
services:
|
services:
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
TZ: Europe/Copenhagen
|
TZ: Europe/Copenhagen
|
||||||
volumes:
|
volumes:
|
||||||
- /docker-volumes:/mnt/volumes:ro
|
- /docker-volumes:/mnt/volumes:ro
|
||||||
|
|
||||||
restic-prune:
|
restic-prune:
|
||||||
image: "mazzolino/restic:{{ services.restic.version }}"
|
image: "mazzolino/restic:{{ services.restic.version }}"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue