{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/43","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/43/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/43/events","html_url":"https://github.com/geerlingguy/ansible-role-nginx/issues/43","id":128514040,"number":43,"title":"Task 'Define nginx_user.' skipped","user":{"login":"Caroga","id":4005934,"avatar_url":"https://avatars.githubusercontent.com/u/4005934?v=3","gravatar_id":"","url":"https://api.github.com/users/Caroga","html_url":"https://github.com/Caroga","followers_url":"https://api.github.com/users/Caroga/followers","following_url":"https://api.github.com/users/Caroga/following{/other_user}","gists_url":"https://api.github.com/users/Caroga/gists{/gist_id}","starred_url":"https://api.github.com/users/Caroga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caroga/subscriptions","organizations_url":"https://api.github.com/users/Caroga/orgs","repos_url":"https://api.github.com/users/Caroga/repos","events_url":"https://api.github.com/users/Caroga/events{/privacy}","received_events_url":"https://api.github.com/users/Caroga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-25T11:12:44Z","updated_at":"2016-01-29T19:15:38Z","closed_at":null,"body":"Defining the nxing_user is skipped even though the variable is defined in both `defaults/main.yml` and the `playbook.yml`\r\n\r\n```\r\nTASK [geerlingguy.nginx : Define nginx_user.] **********************************\r\nskipping: [010php.vm]\r\n```\r\n\r\nThis occurs on a debian based system. I may be able to provide a PR if I got the time."},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/comments/176918901","html_url":"https://github.com/geerlingguy/ansible-role-nginx/issues/43#issuecomment-176918901","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/43","id":176918901,"user":{"login":"rbarabas","id":8724965,"avatar_url":"https://avatars.githubusercontent.com/u/8724965?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarabas","html_url":"https://github.com/rbarabas","followers_url":"https://api.github.com/users/rbarabas/followers","following_url":"https://api.github.com/users/rbarabas/following{/other_user}","gists_url":"https://api.github.com/users/rbarabas/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarabas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarabas/subscriptions","organizations_url":"https://api.github.com/users/rbarabas/orgs","repos_url":"https://api.github.com/users/rbarabas/repos","events_url":"https://api.github.com/users/rbarabas/events{/privacy}","received_events_url":"https://api.github.com/users/rbarabas/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T19:15:38Z","updated_at":"2016-01-29T19:15:38Z","body":"I had the same problem when a different ansible role (let it be nameless for now) which first tried to pull in franklinkim's nginx first before this one. That role set a default value for \"nginx_user\" in its main.yml and from that moment on the variable remained set for even the successive (this) role. Not sure if this is related to inheritance upon dependencies. The problematic piece there was:\r\n\r\n```\r\ndependencies:\r\n  - { role: franklinkim.nginx, when: consul_install_nginx == true and ansible_os_family == \"Debian\" }\r\n  - { role: geerlingguy.nginx, when: consul_install_nginx == true and ansible_os_family == \"RedHat\" }\r\n  - { role: joshualund.golang, when: consul_install_consul_cli == true }\r\n```"}}