init
This commit is contained in:
17
roles/common/templates/docker-compose.yaml.j2
Executable file
17
roles/common/templates/docker-compose.yaml.j2
Executable file
@@ -0,0 +1,17 @@
|
||||
# ansible managed #
|
||||
|
||||
version: '3.3'
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- WATCHTOWER_SCHEDULE=0 0 4 * * *
|
||||
- WATCHTOWER_CLEANUP=true
|
||||
- WATCHTOWER_TIMEOUT=30s
|
||||
- WATCHTOWER_INCLUDE_RESTARTING=true
|
||||
- WATCHTOWER_ROLLING_RESTART=true
|
||||
- TZ="Europe/Berlin"
|
||||
restart: unless-stopped
|
||||
5
roles/common/templates/root_authorized_keys.j2
Executable file
5
roles/common/templates/root_authorized_keys.j2
Executable file
@@ -0,0 +1,5 @@
|
||||
{% for user in keys %}
|
||||
{% if keys[user].ssh_as_root | default(false) %}
|
||||
{{ keys[user].pub_key }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
3
roles/common/templates/user_authorized_keys.j2
Executable file
3
roles/common/templates/user_authorized_keys.j2
Executable file
@@ -0,0 +1,3 @@
|
||||
{% for user in users %}
|
||||
{{ keys[user].pub_key }}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user