Commit 6c561ffe authored by Okhin's avatar Okhin

Installing a mutisite wordpress - no SSL for now

parent 0707b309
Pipeline #2449 passed with stages
in 26 seconds
......@@ -7,11 +7,11 @@ wordpress_dbname: unegrange_wp
wordpress_dbuser: datafoin
wordpress_dbpass: !vault |
$ANSIBLE_VAULT;1.1;AES256
65336533383236653432626338613864633439626332323034633731666333333466383930633661
3431363865343433643530303430633664633032333834630a336261363263373331343030373832
39616639306138366335363438316233623838656631323133663365373531306535633630326561
3266633666616636650a356162626133353236663461303464346335396262303835666133613531
3131
62646164646235316231313462356239626537383032386161333736396630363531353635353638
3533313561613937663931303731346363626138366664310a653435633562623237666361326330
66646261363831383931616238666432646139373839373937383035636535383163633031376630
6230376130323965330a346463396533316131646133626239643464313532353964383764386364
3164
#certbot_create_command: "{{ certbot_script }} certonly --webroot --webrootpath /var/www/letsencrypt/ --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} -d {{ cert_item.domains | join(,)"
......@@ -20,13 +20,23 @@ wordpress_dbpass: !vault |
# - "grange.dev.lqdn.fr"
# - "*.grange.dev.lqdn.fr"
apache_vhosts_ssl:
#apache_vhosts_ssl:
# - servername: "grange.dev.lqdn.fr"
# serveralias: "*.grange.dev.lqdn.fr"
# documentroot: "{{ wordpress_path }}"
# allow_override: "All"
# certificate_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
# certificate_key_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
# extraparameters: |
# RewriteRule ^/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# Alias /.well-known/acme-challenge/ /var/www/letsencrypt/.well-known/acme-challenge/
apache_vhosts:
- servername: "grange.dev.lqdn.fr"
serveralias: "*.grange.dev.lqdn.fr"
documentroot: "{{ wordpress_path }}"
allow_override: "All"
certificate_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
certificate_keyfile: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
#certificate_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
#certificate_key_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
extraparameters: |
RewriteRule ^/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Alias /.well-known/acme-challenge/ /var/www/letsencrypt/.well-known/acme-challenge/
......@@ -3,5 +3,8 @@ pi3.lqdn.fr
[dev]
pi3.lqdn.fr
[webserver]
pi3.lqdn.fr
[wordpress]
pi3.lqdn.fr
......@@ -48,6 +48,7 @@
- role: geerlingguy.php
- role: geerlingguy.php-mysql
- role: geerlingguy.certbot
- role: geerlingguy.apache
- hosts: wordpress
environment:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment