Skip to content
Snippets Groups Projects
Commit 5b1304dc authored by nimrod's avatar nimrod
Browse files

- Rename force_ssl to force_https.

- Rename variables to start with wordpress_.
- Change default value of wordpress_force_https to False.
parent ad03b362
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,9 @@ Role Variables
::
fqdn: ansible_fqdn #Site FQDN.
force_ssl: True #Force SSL for site URL.
wordpress_fqdn: {{ ansible_fqdn }} #Site FQDN.
wordpress_force_https: False #Force SSL for site URL.
wordpress_mysql_server: #Address for the MySQL server.
Dependencies
------------
......
---
# defaults file for wordpress
fqdn: '{{ ansible_fqdn }}'
force_ssl: True
wordpress_fqdn: '{{ ansible_fqdn }}'
wordpress_force_https: False
wordpress_mysql_server: localhost
......@@ -55,9 +55,9 @@ define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
define('FS_METHOD', 'direct');
define('WP_HOME', '{{ fqdn }}');
define('WP_SITEURL', '{{ fqdn }}');
{% if force_ssl %}
define('WP_HOME', '{{ wordpress_fqdn }}');
define('WP_SITEURL', '{{ wordpress_fqdn }}');
{% if wordpress_force_https|default(False) %}
$_SERVER['HTTPS']='on';
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment