jekhokie / raspberry-noaa-v2

V2 of the fantastic Raspberry Pi NOAA setup
GNU General Public License v3.0
533 stars 100 forks source link

TASK [webserver : nginx tls config file] #1009

Closed i6cbi closed 1 month ago

i6cbi commented 1 month ago

TASK [webserver : nginx tls config file] *** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access 'nginx_tlsdefault.j2'\nSearched in:\n\t/home/pi/raspberry-noaa-v2/ansible/roles/webserver/templates/nginx_tlsdefault.j2\n\t/home/pi/raspberry-noaa-v2/ansible/roles/webserver/nginx_tlsdefault.j2\n\t/home/pi/raspberry-noaa-v2/ansible/roles/webserver/tasks/templates/nginx_tlsdefault.j2\n\t/home/pi/raspberry-noaa-v2/ansible/roles/webserver/tasks/nginx_tlsdefault.j2\n\t/home/pi/raspberry-noaa-v2/ansible/templates/nginx_tlsdefault.j2\n\t/home/pi/raspberry-noaa-v2/ansible/nginx_tlsdefault.j2 on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

PLAY RECAP ***** localhost : ok=76 changed=11 unreachable=0 failed=1 skipped=46 rescued=0 ignored=2

in /home/pi/raspberry-noaa-v2/ansible/roles/webserver/templates after renamed nginx_default_bullseye.j2 to nginxdefault.j2

TASK [webserver : ensure nginx is running] ***** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to start 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 ***** localhost : ok=78 changed=11 unreachable=0 failed=1 skipped=47 rescued=0 ignored=2

SOLVED IF in settings.yml web_server_name: raspberry-noaa.localdomain enable_non_tls: true web_port: 80 enable_tls: false