Conditional check ansible_virtualization_role failed
Bij het uitrollen van deze role op een baremetal server krijg ik de volgende foutmelding:
TASK [base : Install packages for physical hosts] **************************************************************************
fatal: [netdc-bms-c11a]: FAILED! => {"msg": "The conditional check 'ansible_virtualization_role == 'host'' failed. The error was: error while evaluating conditional (ansible_virtualization_role == 'host'): 'ansible_virtualization_role' is undefined. 'ansible_virtualization_role' is undefined\n\nThe error appears to be in '/home/rudibroekhuizen/Documents/Repos/ansible-explore/roles/base/tasks/main.yml': line 18, 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: Install packages for physical hosts\n ^ here\n"}
In dit specifieke geval ging het om server met IP adres 145.136.253.5.