jdauphant/ansible-role-nginx

defining sites_enabled file name via variable

Opened this issue · 1 comments

I am wondering if defining the example.com.conf in sites enabled is definable via a variable.

Currently using:

- role: ansible-role-nginx
  nginx_sites:
  "{{ my_domain }}":                              <--- This line causes the error
    - server_name {{ my_domain }}
      root /home/admin/sites/{{ my_domain }}

The server name and root lines work perfectly fine. Defining the file name statically as per your examples also work fine. Is there anything I am missing here or is what I am trying to do not feasible in the current iteration. Thank you.

We didn't find a solution for that :(
We have discuss that here:
#88 (comment)