You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
[make sure a maintenance root exists]
|
|
mkdir: /var/www/maint/www
|
|
group: www-data
|
|
owner: www-data
|
|
recursive: yes
|
|
|
|
[install radicale]
|
|
pip3: radicale
|
|
|
|
[create radicale configuration directory]
|
|
mkdir: /etc/radicale/config
|
|
owner: radicale
|
|
recursive: yes
|
|
|
|
[create the radicale configuration file]
|
|
template: config.ini /etc/radicale/config/config.ini
|
|
|
|
[create the radicale user]
|
|
user.add: radicale
|
|
home: /
|
|
login: /sbin/nologin
|
|
system: yes
|
|
; useradd --system --user-group --home-dir / --shell /sbin/nologin radicale
|
|
|
|
[create the systemd service file for radicale]
|
|
template: radicale.service /etc/systemd/system/radicale.service
|
|
|
|
[start the radicale service]
|
|
start: radicale
|
|
|
|
[disable the default site]
|
|
apache.disable: default
|
|
|
|
[create the initial apache config file]
|
|
template: httpd.conf /etc/apache2/sites-available/{{ domain_name }}.conf
|
|
|
|
[enable the site]
|
|
apache.enable: {{ domain_name }}
|
|
|
|
[reload apache]
|
|
apache.reload:
|
|
|
|
[get an SSL cert]
|
|
ssl: {{ domain_name }}
|
|
email: {{ webmaster_email }}
|
|
|
|
[create the SSL version of the apache config file]
|
|
template: httpd.conf /etc/apache2/sites-available/{{ domain_name }}.conf
|
|
ssl_enabled: yes
|
|
|
|
[restart apache]
|
|
apache.restart:
|
|
|