Thank you for the reply. I would prefer to have the staging site setup with an SSL. But when I provision the server with various settings I run into errors. I will list these out below. Thank you for the help in advance.
Provision Server with the following settings:
Wordpress Sites File
# Documentation: https://roots.io/trellis/docs/remote-server-setup/
# `wordpress_sites` options: https://roots.io/trellis/docs/wordpress-sites
# Define accompanying passwords/secrets in group_vars/staging/vault.yml
wordpress_sites:
reviewexchange.com:
site_hosts:
- canonical: dev.reviewexchange.com
#redirects:
# - https://dev.reviewexchange.com
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@github.com # replace with your Git repo URL
repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo
branch: master
multisite:
enabled: false
ssl:
enabled: true
provider: letsencrypt
env:
wp_home: https://dev.reviewexchange.com
wp_siteurl: https://dev.reviewexchange.com/wp
cache:
enabled: false
Hosts - Staging
[staging]
dev.reviewexchange.com
[web]
dev.reviewexchange.com
I get this message when running ansible-playbook server.yml -e env=staging
Failed to connect to the host via ssh.
fatal: [dev.reviewexchange.com]: UNREACHABLE! => {“changed”: false, “unreachable”: true}
If I change the domain back to the ip address it seems to work until it gets to error creating the SSL. This is the message.
[staging]
45.55.252.107
[web]
45.55.252.107
Then after running ansible-playbook server.yml -e env=staging it goes through most of the process until it hits the following.
fatal: [45.55.252.107]: FAILED! => {“changed”: false, “cmd”: [“./renew-certs.py”], “delta”: “0:00:00.752812”, “end”: “2016-08-29 15:07:02.382938”, “failed”: true, “rc”: 1, “start”: “2016-08-29 15:07:01.630126”, “stderr”: “”, “stdout”: “Generating certificate for reviewexchange.com\nError while generating certificate for reviewexchange.com\nParsing account key…\nParsing CSR…\nRegistering account…\nTraceback (most recent call last):\n File "/usr/local/letsencrypt/acme_tiny.py", line 198, in \n main(sys.argv[1:])\n File "/usr/local/letsencrypt/acme_tiny.py", line 194, in main\n signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)\n File "/usr/local/letsencrypt/acme_tiny.py", line 92, in get_crt\n raise ValueError("Error registering: {0} {1}".format(code, result))\nValueError: Error registering: 400 {\n "type": "urn:acme:error:malformed",\n "detail": "Provided agreement URL [https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf] does not match current agreement URL [https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf]",\n "status": 400\n}”, “stdout_lines”: [“Generating certificate for reviewexchange.com”, “Error while generating certificate for reviewexchange.com”, “Parsing account key…”, “Parsing CSR…”, “Registering account…”, “Traceback (most recent call last):”, " File "/usr/local/letsencrypt/acme_tiny.py", line 198, in “, " main(sys.argv[1:])”, " File "/usr/local/letsencrypt/acme_tiny.py", line 194, in main", " signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)“, " File "/usr/local/letsencrypt/acme_tiny.py", line 92, in get_crt”, " raise ValueError("Error registering: {0} {1}".format(code, result))“, “ValueError: Error registering: 400 {”, " "type": "urn:acme:error:malformed",”, " "detail": "Provided agreement URL [https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf] does not match current agreement URL [https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf]",“, " "status": 400”, “}”], “warnings”: }