Commit fb7e8a6b authored by Okhin's avatar Okhin

Create wordpress configuration, need to fix the database user

parent 22dfaa42
*.retry *.retry
roles/geerlingguy.*/ roles/geerlingguy.*/
.password
.vault
...@@ -3,13 +3,22 @@ wordpress_url: https://grange.dev.lqdn.fr/ ...@@ -3,13 +3,22 @@ wordpress_url: https://grange.dev.lqdn.fr/
wordpress_title: "Site de dev Une Grange" wordpress_title: "Site de dev Une Grange"
wordpress_admin_user: datafoin wordpress_admin_user: datafoin
wordpress_admin_email: okhin@laquadrature.net wordpress_admin_email: okhin@laquadrature.net
wordpress_dbname: unegrange_wp
wordpress_dbuser: datafoin
wordpress_dbpass: !vault |
$ANSIBLE_VAULT;1.1;AES256
65336533383236653432626338613864633439626332323034633731666333333466383930633661
3431363865343433643530303430633664633032333834630a336261363263373331343030373832
39616639306138366335363438316233623838656631323133663365373531306535633630326561
3266633666616636650a356162626133353236663461303464346335396262303835666133613531
3131
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(,)" #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(,)"
certbot_certs: #certbot_certs:
- domains: # - domains:
- "grange.dev.lqdn.fr" # - "grange.dev.lqdn.fr"
- "*.grange.dev.lqdn.fr" # - "*.grange.dev.lqdn.fr"
apache_vhosts_ssl: apache_vhosts_ssl:
- servername: "grange.dev.lqdn.fr" - servername: "grange.dev.lqdn.fr"
......
...@@ -5,6 +5,3 @@ pi3.lqdn.fr ...@@ -5,6 +5,3 @@ pi3.lqdn.fr
[wordpress] [wordpress]
pi3.lqdn.fr pi3.lqdn.fr
[webserver]
pi3.lqdn.fr
...@@ -50,7 +50,11 @@ ...@@ -50,7 +50,11 @@
- role: geerlingguy.certbot - role: geerlingguy.certbot
- hosts: wordpress - hosts: wordpress
environment:
ANSIBLE_VAULT_PASSWORD_FILE: /root/.ansible.vault
remote_user: root remote_user: root
vars_files:
- group_vars/webserver.yml
roles: roles:
- role: wpcli - role: wpcli
- role: wordpress - role: wordpress
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