web_plk: do a few steps manually for now
This commit is contained in:
parent
787fd8eb22
commit
39d252a2bc
@ -22,11 +22,14 @@
|
|||||||
- name: Create vhost directory
|
- name: Create vhost directory
|
||||||
file: path=/var/www/plk state=directory owner=www-data group=www-data
|
file: path=/var/www/plk state=directory owner=www-data group=www-data
|
||||||
|
|
||||||
- name: Configure MySQL database
|
# FIXME mysql_db and mysql_user is currently not working
|
||||||
mysql_db: name={{ plk_dbname }}
|
# already tried installing python3-pymsql
|
||||||
|
# so for now mysql is handled manually
|
||||||
|
#- name: Configure MySQL database
|
||||||
|
# mysql_db: name={{ plk_dbname }}
|
||||||
|
|
||||||
- name: Configure MySQL user
|
#- name: Configure MySQL user
|
||||||
mysql_user: name={{ plk_dbuser }} password={{ plk_dbpass }} priv={{ plk_dbname }}.*:ALL state=present
|
# mysql_user: name={{ plk_dbuser }} password={{ plk_dbpass }} priv={{ plk_dbname }}.*:ALL state=present
|
||||||
|
|
||||||
- name: Ensure certificates are available
|
- name: Ensure certificates are available
|
||||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ plk_domain }}.key -out /etc/nginx/ssl/{{ plk_domain }}.crt -days 730 -subj "/CN={{ plk_domain }}" creates=/etc/nginx/ssl/{{ plk_domain }}.crt
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ plk_domain }}.key -out /etc/nginx/ssl/{{ plk_domain }}.crt -days 730 -subj "/CN={{ plk_domain }}" creates=/etc/nginx/ssl/{{ plk_domain }}.crt
|
||||||
@ -36,9 +39,10 @@
|
|||||||
template: src=certs.j2 dest=/etc/acertmgr/{{ plk_domain }}.conf
|
template: src=certs.j2 dest=/etc/acertmgr/{{ plk_domain }}.conf
|
||||||
notify: Run acertmgr
|
notify: Run acertmgr
|
||||||
|
|
||||||
- name: Configure vhosts
|
# TODO vhost is configured manually to figure out what is needed for wordpress
|
||||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/plk
|
#- name: Configure vhosts
|
||||||
notify: Restart nginx
|
# template: src=vhost.j2 dest=/etc/nginx/sites-available/plk
|
||||||
|
# notify: Restart nginx
|
||||||
|
|
||||||
- name: Enable vhosts
|
- name: Enable vhosts
|
||||||
file: src=/etc/nginx/sites-available/plk dest=/etc/nginx/sites-enabled/plk state=link
|
file: src=/etc/nginx/sites-available/plk dest=/etc/nginx/sites-enabled/plk state=link
|
||||||
|
Loading…
Reference in New Issue
Block a user