Re: [ansible-project] Re: how to run an if/else test in a task

2020-05-20 Thread Stefan Hornburg (Racke)
On 5/20/20 12:23 PM, Jerome Meyer wrote: > Thanks for your reply and tips. > So, has requested I've checked out the stdout message: > > I've received only message when the domain already joined, like: > > | > ok:[localhost]=>{ >     "ad_join_status.stdout_lines":[ >         "   3

[ansible-project] Re: how to run an if/else test in a task

2020-05-20 Thread Jerome Meyer
Thanks for your reply and tips. So, has requested I've checked out the stdout message: I've received only message when the domain already joined, like: ok: [localhost] => { "ad_join_status.stdout_lines": [ " 3 server_name@domain", " 3 server_name@domain", " 3

[ansible-project] Re: how to run an if/else test in a task

2020-05-19 Thread IaV
In the when clause use something like ad_join_status.stdout_lines[0] to check what it needs to be add - debug var: ad_join_status and see what is there -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from