You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ansible_selinux variable is a boolean (at least in Ansible 2.1.1.0) but it's being treated as an object:
fatal: [REDACTED]: FAILED! => {"failed": true, "msg": "The conditional check 'consul_is_ui and consul_install_nginx_config and ansible_selinux.status == "enabled"' failed. The error was: error while evaluating conditional (consul_is_ui and consul_install_nginx_config and ansible_selinux.status == "enabled"): 'bool object' has no attribute 'status'\n\nThe error appears to have been in '/[REDACTED]/ansible/roles/savagegus.ansible-consul/tasks/install-ui.yml': line 79, 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: allow nginx to connect to consul (selinux)\n ^ here\n"}
Workaround is to add a role variable ansible_selinux: { "status": "disabled" } when including this role.
The text was updated successfully, but these errors were encountered:
The
ansible_selinux
variable is a boolean (at least in Ansible 2.1.1.0) but it's being treated as an object:Workaround is to add a role variable
ansible_selinux: { "status": "disabled" }
when including this role.The text was updated successfully, but these errors were encountered: