You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whenever I run the nginx role, it seems to avoid the nginx_servers variable I've set. It looks like this:
nginx_servers:
-
enabled: True
name: [ 'hmsvr' ]
type: 'custom'
filename: 'usenet'
options: |
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
Using debops ansible-debug I've confirmed that this variable is set correctly when I run the nginx role. But when the role gets to the "Generate nginx server configuration" task, the output is something like this:
This host is a member of the dokuwiki group, and has dokuwiki installed. In trying to figure this out I was thinking that maybe dokuwiki config is overriding my custom nginx config, but I'm having trouble even figuring out how dokuwiki role defines it's nginx config.
Sorry to bother you with something so silly, but I'm stuck.. sorry!
The text was updated successfully, but these errors were encountered:
You go that right. Since you enabled only [debops_dokuwiki] on this host, nginx role is run in debops.dokuwiki context, which overrides default nginx_servers list with its own.
When you add that host to [debops_nginx] group, and run debops -t nginx, it will have "its own" set of tasks which then will use configuration from Ansible inventory to set up a nginx server configuration.
whenever I run the nginx role, it seems to avoid the nginx_servers variable I've set. It looks like this:
Using debops ansible-debug I've confirmed that this variable is set correctly when I run the nginx role. But when the role gets to the "Generate nginx server configuration" task, the output is something like this:
This host is a member of the dokuwiki group, and has dokuwiki installed. In trying to figure this out I was thinking that maybe dokuwiki config is overriding my custom nginx config, but I'm having trouble even figuring out how dokuwiki role defines it's nginx config.
Sorry to bother you with something so silly, but I'm stuck.. sorry!
The text was updated successfully, but these errors were encountered: