Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

defining sites_enabled file name via variable #127

Open
keywork opened this issue Aug 3, 2016 · 1 comment
Open

defining sites_enabled file name via variable #127

keywork opened this issue Aug 3, 2016 · 1 comment

Comments

@keywork
Copy link

keywork commented Aug 3, 2016

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.

@jdauphant
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants