1
0

Добавлен Caddy-сервер

This commit is contained in:
Anton Vakhrushev 2019-06-14 14:35:39 +03:00
parent f9a1710bf6
commit 0a321b59ae
3 changed files with 18 additions and 10 deletions

View File

@ -36,12 +36,17 @@
docker_users: '{{ apps | map(attribute="username") | list }}'
- include_role:
name: docker-app
private: yes
name: antoiner77.caddy
vars:
username: '{{ app_item.username }}'
ssh_keys: '{{ app_item.ssh_keys | default([]) }}'
env: '{{ app_item.env | default({}) }}'
with_items: '{{ apps }}'
loop_control:
loop_var: app_item
caddy_config: '{{ lookup("template", "templates/Caddyfile.j2") }}'
# - include_role:
# name: docker-app
# private: yes
# vars:
# username: '{{ app_item.username }}'
# ssh_keys: '{{ app_item.ssh_keys | default([]) }}'
# env: '{{ app_item.env | default({}) }}'
# with_items: '{{ apps }}'
# loop_control:
# loop_var: app_item

View File

@ -7,3 +7,6 @@
- src: geerlingguy.docker
version: 2.5.2
- src: antoiner77.caddy
version: v2.1.0

View File