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"

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"]}


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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to