On a fresh install, the letsencrypt certificate request playbook is failing.
I'm running
cchq <env> ansible-playbook letsencrypt_cert.yml --skip-check
The playbook fails at:
TASK [Reload Nginx] *****************************************************************************************************************************************
fatal: [10.0.0.5]: FAILED! => {"changed": false, "msg": "Unable to reload service nginx: Job for nginx.service failed because the control process exited with
error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
PLAY RECAP **************************************************************************************************************************************************
10.0.0.5 : ok=10 changed=2 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0
journalctl -xe reveals no issues and systemctl status nginx.service shows:
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) (Result: exit-code) since Wed 2022-09-14 19:16:13 UTC; 15h ago
Docs: https://nginx.org/en/docs/
Process: 11047 ExecReload=/bin/sh -c /bin/kill -s HUP $(/bin/cat /var/run/nginx.pid) (code=exited, status=1/FAILURE)
Main PID: 71991 (nginx)
Tasks: 6 (limit: 19660)
CGroup: /system.slice/nginx.service
├─71991 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─73806 nginx: worker process
├─73807 nginx: worker process
├─73808 nginx: worker process
├─73809 nginx: worker process
└─73810 nginx: cache manager process