acertmgr: rename from certmgr, run on config change
This commit is contained in:
parent
407409010e
commit
9bffa36a33
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -8,3 +8,6 @@
|
||||
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -2,3 +2,6 @@
|
||||
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -3,5 +3,5 @@
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Run certmgr
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -5,3 +5,6 @@
|
||||
|
||||
- name: Restart prosody
|
||||
service: name=prosody state=restarted
|
||||
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
|
@ -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
|
||||
|
@ -2,3 +2,6 @@
|
||||
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
@ -3,5 +3,5 @@
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Run certmgr
|
||||
- name: Run acertmgr
|
||||
command: /opt/acertmgr/acertmgr.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- { role: certmgr }
|
||||
- { role: acertmgr }
|
||||
- { role: nginx, nginx_ssl: True }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user