OSC / ood-ansible

An ansible role for Open Ondemand
MIT License
30 stars 31 forks source link

Changing app_root: settings in nginx_stage.yml #219

Closed sandermitre closed 1 year ago

sandermitre commented 1 year ago

Looking at the Jinja template this doesn't look changeable. Is there another way to do it?

If we can agree on a variable name e.g. app_root_dev I can create a pull request if that's what's needed.

johrstrom commented 1 year ago

If we can agree on a variable name e.g. app_root_dev I can create a pull request if that's what's needed.

That sounds just fine to me, using the same name that the upstream uses.

sandermitre commented 1 year ago

My mistake you can set it already the variable logic is just a little different than the other if statements.

    nginx_app_root:
      dev: '~%{owner}/%{portal}/dev/%{name}'
      usr: '/var/www/ood/apps/usr/%{owner}/gateway/%{name}'
      sys: '/var/www/ood/apps/sys/%{name}'