Skip to content
Snippets Groups Projects
Verified Commit bb8c0eec authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

use command module instead of shell so passwords to not mess up the system

parent 204686fe
No related branches found
No related tags found
1 merge request!58Resolve "Add SMTP configuration options"
Pipeline #9179 passed with stage
in 50 seconds
......@@ -121,7 +121,7 @@ smtp_settings:
# Enable using these SMTP settings
enabled: false
# Username for SMTP authentication
smtp_user: admin@example.com
smtp_user: admin@example.com
# Password for STMP authentication
smtp_pass: password
# Hostname of the mailserver
......@@ -129,7 +129,7 @@ smtp_settings:
# SMTP from email address
smtp_from: admin@example.com
# SMTP from name
smtp_name: Admin
smtp_name: WordPress Admin
# SMTP port number - likely to be 25, 465 or 587
smtp_port: 587
# Encryption system to use - ssl or tls
......
......@@ -192,11 +192,11 @@ service:
# See values-local.yaml.example for an explanation of these variables
smtp_settings:
enabled: false
smtp_user: admin@example.com
smtp_user: admin@example.com
smtp_pass: password
smtp_host: smtp.greenhost.nl
smtp_from: admin@example.com
smtp_name: Admin
smtp_name: WordPress Admin
smtp_port: 587
smtp_secure: 'tls'
smtp_auth: true
......
- name: Define SMTP variables
shell: wp {{ cli_args }} config set "{{ item.key }}" "{{ item.value }}" --add --type=constant
command: wp {{ cli_args }} config set "{{ item.key }}" "{{ item.value }}" --add --type=constant
loop: "{{ WP_SMTP_SETTINGS | dict2items }}"
- name: Define SMTP variables
shell: wp {{ cli_args }} config set "{{ item.key }}" "{{ item.value }}" --add --raw --type=constant
command: wp {{ cli_args }} config set "{{ item.key }}" "{{ item.value }}" --add --raw --type=constant
loop: "{{ WP_SMTP_RAW_SETTINGS | dict2items }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment