Refer to the exhibit. The playbook fails with this error. What is the most likely cause?
Exhibit
fatal: [web1]: FAILED! => {\n "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible_os_family' is undefined"\n}Trap 1: group_vars are not loaded
Incorrect: missing group_vars would not cause undefined fact.
Trap 2: the host is unreachable
Incorrect: unreachable host causes connection error, not undefined variable.
Trap 3: the inventory is missing the host
Incorrect: missing inventory host would cause different error.
- A
group_vars are not loaded
Why wrong: Incorrect: missing group_vars would not cause undefined fact.
- B
the host is unreachable
Why wrong: Incorrect: unreachable host causes connection error, not undefined variable.
- C
the inventory is missing the host
Why wrong: Incorrect: missing inventory host would cause different error.
- D
gather_facts is set to 'no'
Correct: facts are required for 'ansible_os_family'.