geerlingguy / ansible-role-redis

Ansible Role - Redis
https://galaxy.ansible.com/geerlingguy/redis/
MIT License
254 stars 197 forks source link

How is defined ansible_os_family? #19

Closed braveadmin closed 7 years ago

braveadmin commented 7 years ago

in the main inside tasks there is a include_vars: "{{ ansible_os_family }}.yml" but i can't find this variable anywhere and indeed the deploy is failing. where can i find it?

many thanks

geerlingguy commented 7 years ago

@braveadmin - That is one of Ansible's global vars that's set up during the 'gather_facts' operation. Do you have gather_facts: no in your playbook? If so, that variable may never be set.

Also, what's the specific error you're getting? It could be something else too...

braveadmin commented 7 years ago

Thanks Geerling, the problem was solved with gather_facts variable, i just forgot to respond :)

geerlingguy commented 7 years ago

Awesome!