5.1.1 conditional check 'ansible_os_family == 'RedHat'' failed.
piotrkochan opened this issue · comments
os: ubuntu
TASK [geerlingguy.nodejs : Set up the Nodesource RPM directory.] *****************************************************************************************************************************************************************
fatal: [cs_devel]: FAILED! => {"msg": "The conditional check 'ansible_os_family == 'RedHat'' failed. The error was: error while evaluating conditional (ansible_os_family == 'RedHat'): 'ansible_os_family' is undefined\n\nThe error appears to be in '/home/kochan/.ansible/roles/geerlingguy.nodejs/tasks/setup-RedHat.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Set up the Nodesource RPM directory.\n ^ here\n"}
i forgot set gather_facts: true