Out of the blue Trellis doesnt seem to want to generate a self signed SSL certificate on a development environment. Here’s the error output.
[details="Summary"]
non-zero return code
/bin/bash: -c: line 0: unexpected EOF while looking for matching `)'
/bin/bash: -c: line 10: syntax error: unexpected end of file
failed: [default] (item=thechicstylist.com) => {"ansible_loop_var": "item", "changed": true, "cmd": "openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -sha256 -extensions req_ext -config <( cat <<' EOF'\n[req]\nprompt = no\ndistinguished_name = req_dn\n[req_dn]\ncommonName = thechicstylist.local\n[req_ext]\nsubjectAltName = DNS:thechicstylist.local,DNS:www.thechicstylist.local\nEOF\n) -keyout thechicstylist.com.key -out thechicstylist.com.cert", "delta": "0:00:00.002998", "end": "2019-09-27 12:05:28.433636", "item": {"key": "thechicstylist.com", "value": {"admin_email": "richard@torbledesign.com", "cache": {"enabled": true}, "local_path": "../site", "multisite": {"enabled": false}, "site_hosts": [{"canonical": "thechicstylist.local", "redirects": ["www.thechicstylist.local"]}], "ssl": {"enabled": true, "provider": "self-signed"}}}, "rc": 1, "start": "2019-09-27 12:05:28.430638", "stderr_lines": ["/bin/bash: -c: line 0: unexpected EOF while looking for matching `)'", "/bin/bash: -c: line 10: syntax error: unexpected end of file"], "stdout": "", "stdout_lines": []}
---------------------------------------------------
non-zero return code
/bin/bash: -c: line 0: unexpected EOF while looking for matching `)'
/bin/bash: -c: line 10: syntax error: unexpected end of file
failed: [default] (item=no_default) => {"ansible_loop_var": "item", "changed": true, "cmd": "openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -sha256 -extensions req_ext -config <( cat <<' EOF'\n[req]\nprompt = no\ndistinguished_name = req_dn\n[req_dn]\ncommonName = example.com\n[req_ext]\nsubjectAltName = DNS:example.com\nEOF\n) -keyout no_default.key -out no_default.cert", "delta": "0:00:00.002857", "end": "2019-09-27 12:05:28.630016", "item": {"key": "no_default", "value": {"multisite": {}, "site_hosts": [{"canonical": "example.com"}], "ssl": {"enabled": true, "provider": "self-signed"}}}, "rc": 1, "start": "2019-09-27 12:05:28.627159", "stderr_lines": ["/bin/bash: -c: line 0: unexpected EOF while looking for matching `)'", "/bin/bash: -c: line 10: syntax error: unexpected end of file"], "stdout": "", "stdout_lines": []}
[/details]
I’m a bit stumped why there are references to example.com as well when my wordpress_sites and vault files have been correctly updated.
Any ideas?