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": ["runlevel"], "delta": 
"0:00:00.003175", "end": "2018-03-12 06:23:16.055125", "failed": true, 
"failed_when_result": true, "rc": 0, "start": "2018-03-12 06:23:16.051950", 
"stderr": "", "stderr_lines": [], "stdout": "N 3", "stdout_lines": ["N 3"]}

From,
Vino.B

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dda5f6a1-177a-4e49-8f82-8a167f6db696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to