I’m trying to add SSL to a live, provisioned DigitalOcean server. I’m going to group_vars/production and adding the following:
ssl:
enabled: true
key: /etc/nginx/ssl/nginx.key
cert: /etc/nginx/ssl/nginx.crt
I then SSH’d went to the DO server and create a new self-signed cert by following the how-to in this article:
I created both nginx.crt & nginx.key and can verify that they are there and contain the correct information.
I then deployed the new production file and then re-ran the DO provision:
ansible-playbook -i hosts/production server.yml
Everything seems to go smoothly until it errors out with:
TASK: [wordpress-setup | Copy SSL cert] ***************************************
fatal: [xxx.xxx.xxx.xxx] => input file not found at /etc/nginx/ssl/nginx.crt or /etc/nginx/ssl/nginx.crt
FATAL: all hosts have already failed – aborting
Anyone see a reason why this might not be working?