mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Implemented the possibility for multisite wordpress
This commit is contained in:
parent
51e0a89247
commit
d45da7497f
@ -1,11 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: recieve {{domain}} certificate
|
- name: recieve wordpress certificates
|
||||||
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
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:
|
vars:
|
||||||
client_max_body_size: "2M"
|
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
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "setup wordpress"
|
- name: "setup wordpress"
|
||||||
|
2
site.yml
2
site.yml
@ -58,7 +58,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- role: docker-wordpress
|
- role: docker-wordpress
|
||||||
vars:
|
vars:
|
||||||
domain: www.{{top_domain}}
|
domains: "{{wordpress_domains}}"
|
||||||
http_port: 8003
|
http_port: 8003
|
||||||
- name: setup mediawiki hosts
|
- name: setup mediawiki hosts
|
||||||
hosts: mediawiki_hosts
|
hosts: mediawiki_hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user