Hi
try comparing strings with strings, i.e.:
failed_when: rlevel_status.stdout.split()[1] != '3'
regards,
Thomas
On Mon, Mar 12, 2018 at 7:30 AM, Vino B wrote:
> Hi All,
>
> Request your help on the below
>
> - name: Check whether run level is set to Multi-User
Hi All,
Request your help on the below
- name: Check whether run level is set to Multi-User System
command: runlevel
register: rlevel_status
failed_when: rlevel_status.stdout.split()[1] != 3
The output of rlevel_status = "N 3"
Error:
FAILED! => {"changed": false, "cmd":