Implemented the possibility for multisite wordpress

This commit is contained in:
Kevin Veen-Birkenbach 2021-10-18 20:24:52 +02:00
parent 51e0a89247
commit d45da7497f
2 changed files with 8 additions and 5 deletions

View File

@ -1,11 +1,14 @@
---
- name: recieve {{domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: recieve wordpress certificates
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{item}}
loop: "{{domains}}"
- name: configure {{domain}}.conf
- name: configure wordpress nginx configurations
vars:
client_max_body_size: "2M"
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
domain: "{{item}}"
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ item }}.conf
loop: "{{domains}}"
notify: restart nginx
- name: "setup wordpress"

View File

@ -58,7 +58,7 @@
roles:
- role: docker-wordpress
vars:
domain: www.{{top_domain}}
domains: "{{wordpress_domains}}"
http_port: 8003
- name: setup mediawiki hosts
hosts: mediawiki_hosts