hispanico / ansible-nginx-revproxy

Ansible role Nginx reverse proxy
GNU General Public License v3.0
61 stars 65 forks source link

Broken - Generate Certs (first time) wont work #52

Open b-reich opened 3 years ago

b-reich commented 3 years ago

Hi, i got the following error.

- hosts: proxy
  roles:
    - hispanico.nginx_revproxy
  vars:
    nginx_revproxy_sites:
      default:
        ssl: true
        letsencrypt: true

      proxy.reich.dev:
        domains:
          - proxy.reich.dev
        upstreams:
          - { backend_address: 10.0.0.2, backend_port: 80 }
        ssl: true
        letsencrypt: true
TASK [hispanico.nginx_revproxy : Generate certs (first time)] ************************************************************************************
fatal: [157.90.26.241]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'domains'\n\nThe error appears to be in '/home/benjamin/repos/ansible-test/roles.galaxy/hispanico.nginx_revproxy/tasks/letsencrypt.yml': line 74, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate certs (first time)\n  ^ here\n"}
jorblad commented 2 years ago

I may have been wrong that that pull request would work for this, however it seems that not having the default part worked for me.