Hi,

My goal is to perform tasks only one host based on the output. Searched for 
--limit module to use in playbooks, but it is not present.

A shell script is executed on 3 nodes, which returns a boolean.

ok: [localMulti1] => {
    "variable": {
        ...
        "stdout": "true",
        ...
    }
}
ok: [localMulti2] => {
    "variable": {
        ...
        "stdout": "false",
        ...
    }
}
ok: [localMulti3] => {
    "variable": {
        ...
        "stdout": "false",
        ...
    }
}

How can I perform tasks on only on localMulti2? But not statically include 
the host (inventory_hostname == '...')

Failing with:

- shell: echo
  when: variable.stdout == "false" and ...

-- 
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/4c7da7c4-a65a-49b7-9641-c11790fffc6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to