You've already forked role_radicale
[INFO] Créer le dépôt
This commit is contained in:
22
templates/radicale.conf.j2
Normal file
22
templates/radicale.conf.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% if radicale_auth_type | length > 0 %}
|
||||
[auth]
|
||||
type={{ radicale_auth_type }}
|
||||
{% endif %}
|
||||
|
||||
[encoding]
|
||||
request=utf-8
|
||||
stock=utf-8
|
||||
|
||||
[logging]
|
||||
level=debug
|
||||
|
||||
[rights]
|
||||
type=owner_only
|
||||
|
||||
[server]
|
||||
hosts=0.0.0.0:5232, [::]:5232
|
||||
|
||||
[storage]
|
||||
filesystem_folder={{ radicale_root_path }}
|
27
templates/radicale.service.j2
Normal file
27
templates/radicale.service.j2
Normal file
@@ -0,0 +1,27 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=A simple CalDAV (calendar) and CardDAV (contact) server
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
Environment="RADICALE_CONFIG={{ radicale_root_path }}/radicale.conf"
|
||||
ExecStart=/usr/bin/env python3 -m radicale
|
||||
Restart=on-failure
|
||||
User=radicale
|
||||
# Deny other users access to the calendar data
|
||||
UMask=0027
|
||||
# Optional security settings
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
NoNewPrivileges=true
|
||||
ReadWritePaths={{ radicale_root_path }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user