Fails to proceed unless at least one uf is part of the configuration.
To Reproduce
cp examples/single_node.yml config/
cd config
vagrant up; ansible-playbook ansible/deploy-site.yml
Screenshots
Ansible fails at:
TASK [common : Check SELinux state] **************************************************************************************************************************************************************************************************************************
fatal: [shidx]: FAILED! => {"msg": "The conditional check 'inventory_hostname not in groups.role_universal_forwarder' failed. The error was: error while evaluating conditional (inventory_hostname not in groups.role_universal_forwarder): 'dict object' has no attribute 'role_universal_forwarder'\n\nThe error appears to be in '/Users/guilhem/Vagrant/Splunkenizer-preprod/ansible/roles/common/tasks/disable_selinux.yml': line 4, 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: Check SELinux state\n ^ here\n"}
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************
shidx : ok=4 changed=3 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
Describe the bug The sample standalone config in:
Fails to proceed unless at least one uf is part of the configuration.
To Reproduce
Screenshots
Ansible fails at:
If a UF is enabled, in splunk_config.yml:
The deployment proceeds successfully as expected, otherwise fails with just the single node.
Desktop (please complete the following information):