acertmgr: rename from certmgr, run on config change

This commit is contained in:
Markus 2019-02-23 23:54:24 +01:00
parent 407409010e
commit 9bffa36a33
31 changed files with 44 additions and 18 deletions

View File

@ -1,10 +1,10 @@
---
- name: Run certmgr
command: /opt/acertmgr/acertmgr.py
- name: Restart nginx
service: name=nginx state=restarted
- name: Restart uwsgi
service: name=uwsgi state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -32,7 +32,7 @@
- name: Configure certificate manager
template: src=certs.j2 dest=/etc/acme/domains.d/{{ dss_domain }}.conf
notify: Run certmgr
notify: Run acertmgr
- name: Configure vhosts
template: src=vhost.j2 dest=/etc/nginx/sites-available/dss

View File

@ -1,4 +1,7 @@
---
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py
- name: Restart nginx
service: name=nginx state=restarted

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -34,6 +34,7 @@
- name: Configure certificate manager for gogs
template: src=certs.j2 dest=/etc/acme/domains.d/{{ gogs_domain }}.conf
notify: Run acertmgr
- name: Configure vhost
template: src=vhost.j2 dest=/etc/nginx/sites-available/gogs

View File

@ -8,3 +8,6 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -72,6 +72,7 @@
- name: Configure certificate manager for hackmd
template: src=certs.j2 dest=/etc/acme/domains.d/{{ hackmd_domain }}.conf
notify: Run acertmgr
- name: Configure vhost
template: src=vhost.j2 dest=/etc/nginx/sites-available/hackmd

View File

@ -2,3 +2,6 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -60,6 +60,7 @@
- name: Configure certificate manager for librenms
template: src=certs.j2 dest=/etc/acme/domains.d/{{ librenms_domain }}.conf
notify: Run acertmgr
- name: Configure vhost
template: src=vhost.j2 dest=/etc/nginx/sites-available/librenms

View File

@ -15,6 +15,9 @@
- name: Restart postgrey
service: name=postgrey state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py
- name: Run postmap
command: postmap /etc/{{ item }}
with_items:

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -144,9 +144,11 @@
- name: Configure certificate manager
template: src=certs.j2 dest=/etc/acme/domains.d/{{ mail_server }}_mail.conf
notify: Run acertmgr
- name: Configure certificate manager for mailman
template: src=mailman/certs.j2 dest=/etc/acme/domains.d/{{ mailman_domain }}_mailman.conf
notify: Run acertmgr
- name: Start amavis
service: name=amavis state=started enabled=yes

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -32,6 +32,7 @@
- name: Configure certificate manager for owncloud
template: src=certs.j2 dest=/etc/acme/domains.d/{{ owncloud_domain }}.conf
notify: Run acertmgr
- name: Create vhost directory
file: path=/var/www/owncloud state=directory owner=www-data group=www-data

View File

@ -3,5 +3,5 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Run certmgr
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -17,7 +17,7 @@
- name: Configure certificate manager
copy: src=certs dest=/etc/acme/domains.d/partdb.binary-kitchen.de.conf
notify: Run certmgr
notify: Run acertmgr
- name: Configure vhosts
copy: src=vhost dest=/etc/nginx/sites-available/www

View File

@ -5,3 +5,6 @@
- name: Restart prosody
service: name=prosody state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,4 +1,4 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }

View File

@ -33,6 +33,7 @@
- name: Configure certificate manager
template: src=certs.j2 dest=/etc/acme/domains.d/{{ prosody_domain }}_prosody.conf
notify: Run acertmgr
- name: Start saslauthd
service: name=saslauthd state=started enabled=yes

View File

@ -2,3 +2,6 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -39,6 +39,7 @@
- name: Configure certificate manager for racktables
template: src=certs.j2 dest=/etc/acme/domains.d/{{ racktables_domain }}.conf
notify: Run acertmgr
- name: Configure vhost
template: src=vhost.j2 dest=/etc/nginx/sites-available/racktables

View File

@ -3,5 +3,5 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Run certmgr
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py

View File

@ -1,5 +1,5 @@
---
dependencies:
- { role: certmgr }
- { role: acertmgr }
- { role: nginx, nginx_ssl: True }

View File

@ -25,7 +25,7 @@
- name: Configure certificate manager
copy: src=certs dest=/etc/acme/domains.d/www.binary-kitchen.de.conf
notify: Run certmgr
notify: Run acertmgr
- name: Configure vhosts
copy: src=vhost dest=/etc/nginx/sites-available/www