jdauphant / ansible-role-nginx

Ansible role to install and manage nginx configuration
655 stars 302 forks source link

Change nginx user #207

Closed krzyzakp closed 6 years ago

krzyzakp commented 6 years ago

We wanted to run on Debian family (Ubuntu 16.04) nginx as user nginx, not www-data as it's defined by default for this family. We set nginx_user, but it's not working. As I dig in, it's due to tasks/main.yml including vars/{os}.yml - what due to our hash_behaviour = true in ansible.cfg, does hiera merge and overwrite with data from OS specific yaml file.

jdauphant commented 6 years ago

@krzyzakp Thanks for the report.

If you want, you can submit a PR like that :

It should solve the problem

jdauphant commented 6 years ago

@krzyzakp Have you seen my message ?

krzyzakp commented 6 years ago

@jdauphant Yes, sorry for delay in answering. I just submitted PR with solution.

jdauphant commented 6 years ago

@krzyzakp We have reverted your PR, but #214 have been merged and can do that too