forked from infra/ansible
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
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
- name: Restart uwsgi
|
- name: Restart uwsgi
|
||||||
service: name=uwsgi state=restarted
|
service: name=uwsgi state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ dss_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ dss_domain }}.conf
|
||||||
notify: Run certmgr
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhosts
|
- name: Configure vhosts
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/dss
|
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
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager for gogs
|
- name: Configure certificate manager for gogs
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ gogs_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ gogs_domain }}.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhost
|
- name: Configure vhost
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/gogs
|
template: src=vhost.j2 dest=/etc/nginx/sites-available/gogs
|
||||||
|
@ -8,3 +8,6 @@
|
|||||||
|
|
||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager for hackmd
|
- name: Configure certificate manager for hackmd
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ hackmd_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ hackmd_domain }}.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhost
|
- name: Configure vhost
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/hackmd
|
template: src=vhost.j2 dest=/etc/nginx/sites-available/hackmd
|
||||||
|
@ -2,3 +2,6 @@
|
|||||||
|
|
||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager for librenms
|
- name: Configure certificate manager for librenms
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ librenms_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ librenms_domain }}.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhost
|
- name: Configure vhost
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/librenms
|
template: src=vhost.j2 dest=/etc/nginx/sites-available/librenms
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
- name: Restart postgrey
|
- name: Restart postgrey
|
||||||
service: name=postgrey state=restarted
|
service: name=postgrey state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
|
||||||
- name: Run postmap
|
- name: Run postmap
|
||||||
command: postmap /etc/{{ item }}
|
command: postmap /etc/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -144,9 +144,11 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ mail_server }}_mail.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ mail_server }}_mail.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure certificate manager for mailman
|
- name: Configure certificate manager for mailman
|
||||||
template: src=mailman/certs.j2 dest=/etc/acme/domains.d/{{ mailman_domain }}_mailman.conf
|
template: src=mailman/certs.j2 dest=/etc/acme/domains.d/{{ mailman_domain }}_mailman.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Start amavis
|
- name: Start amavis
|
||||||
service: name=amavis state=started enabled=yes
|
service: name=amavis state=started enabled=yes
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager for owncloud
|
- name: Configure certificate manager for owncloud
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ owncloud_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ owncloud_domain }}.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Create vhost directory
|
- name: Create vhost directory
|
||||||
file: path=/var/www/owncloud state=directory owner=www-data group=www-data
|
file: path=/var/www/owncloud state=directory owner=www-data group=www-data
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
- name: Run certmgr
|
- name: Run acertmgr
|
||||||
command: /opt/acertmgr/acertmgr.py
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
copy: src=certs dest=/etc/acme/domains.d/partdb.binary-kitchen.de.conf
|
copy: src=certs dest=/etc/acme/domains.d/partdb.binary-kitchen.de.conf
|
||||||
notify: Run certmgr
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhosts
|
- name: Configure vhosts
|
||||||
copy: src=vhost dest=/etc/nginx/sites-available/www
|
copy: src=vhost dest=/etc/nginx/sites-available/www
|
||||||
|
@ -5,3 +5,6 @@
|
|||||||
|
|
||||||
- name: Restart prosody
|
- name: Restart prosody
|
||||||
service: name=prosody state=restarted
|
service: name=prosody state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ prosody_domain }}_prosody.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ prosody_domain }}_prosody.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Start saslauthd
|
- name: Start saslauthd
|
||||||
service: name=saslauthd state=started enabled=yes
|
service: name=saslauthd state=started enabled=yes
|
||||||
|
@ -2,3 +2,6 @@
|
|||||||
|
|
||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
|
- name: Run acertmgr
|
||||||
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager for racktables
|
- name: Configure certificate manager for racktables
|
||||||
template: src=certs.j2 dest=/etc/acme/domains.d/{{ racktables_domain }}.conf
|
template: src=certs.j2 dest=/etc/acme/domains.d/{{ racktables_domain }}.conf
|
||||||
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhost
|
- name: Configure vhost
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/racktables
|
template: src=vhost.j2 dest=/etc/nginx/sites-available/racktables
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
- name: Run certmgr
|
- name: Run acertmgr
|
||||||
command: /opt/acertmgr/acertmgr.py
|
command: /opt/acertmgr/acertmgr.py
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- { role: certmgr }
|
- { role: acertmgr }
|
||||||
- { role: nginx, nginx_ssl: True }
|
- { role: nginx, nginx_ssl: True }
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
- name: Configure certificate manager
|
- name: Configure certificate manager
|
||||||
copy: src=certs dest=/etc/acme/domains.d/www.binary-kitchen.de.conf
|
copy: src=certs dest=/etc/acme/domains.d/www.binary-kitchen.de.conf
|
||||||
notify: Run certmgr
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhosts
|
- name: Configure vhosts
|
||||||
copy: src=vhost dest=/etc/nginx/sites-available/www
|
copy: src=vhost dest=/etc/nginx/sites-available/www
|
||||||
|
Loading…
Reference in New Issue
Block a user