On 26.05.16 14:15 Arush Salil wrote:
> The issues that I am facing are as below:
> 
> 
>    - I am unable to figure out how to iterate in "/var/www/*/htdocs"

At first thought I would use a shell task that does a ls -1 (thats a
one, not the letter L) on the /var/www/ directory. Register the output
of that in a variable foobar, and you could iterate over
foobar.stdout_lines somehow (not sure about the exact syntax)


>    - How can I get the output of wp-cli for each host in a more human 
>    readable/formatted form? Currently I am getting the output by using debug.

I would not got for human readable, but rather let ansible look for
some string in the output. And do the update or do not do it,
depending on the existence of the string in the output.

Johannes


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/574758A9.9080706%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to