There is an issue: sometimes Ansible scripts mistakenly create a directory instead of a file.
To diagnose the issue, run the command:
ls -l deploy/dist/conf/nginx/
If there are directories instead of files in this directory, then run the commands:
rm -rf deploy/dist/conf/nginx/nginx.conf
rm -rf deploy/dist/conf/nginx/dhparams.pem
docker-compose down
bash ./install.sh
This should fix the issue.