Hello All,
I need to set SELinux to permissive mode and reboot. When I run my playbook
I get an error.
Playbook:
---
- name: Set SELinux to permissive mode.
selinux:
policy: targeted
state: permissive
when: ansible_selinux_python_present|bool
- name: Reboot
selinux:
when: reboot_required|bool
Error:
TASK [buildservers : Reboot]
************************************************************************************************************************************************
fatal: [abls15ex]: FAILED! => {"msg": "The conditional check
'reboot_required|bool' failed. The error was: error while evaluating
conditional (reboot_required|bool): 'reboot_required' is undefined\n\nThe
error appears to be in
'/home/jamekeit/ds9/roles/buildservers/tasks/selinux.yaml': line 7, column
3, but may\nbe elsewhere in the file depending on the exact syntax
problem.\n\nThe offending line appears to be:\n\n when:
ansible_selinux_python_present|bool\n- name: Reboot\n ^ here\n"}
Can anyone help?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7facd55b-c7b9-4290-af03-8139924eeb6e%40googlegroups.com.