Normally this would be a question posted to ansible-devel, so please use
this list int he future for development topics.

Basically this data comes back via callbacks and not the API return, so
it's going to be difficult to extract.








On Fri, Aug 22, 2014 at 10:52 AM, kevin hansen <[email protected]>
wrote:

> Trying to use the api to copy a file and I'd like a diff of the changes.
>
> I'm trying :
> results = ansible.runner.Runner(pattern=argument['<hostname>']
> ,check=True,diff=True,module_name='copy', module_args='src=/tmp/x.txt
> dest=/tmp/',).run()
>
>
> results are:
> {'contacted': {'rexpap2': {'changed': True,
>                            'invocation': {'module_args': 'src=/tmp/x.txt
> dest=/tmp/',
>                                           'module_name': 'copy'}}},
>
> running on centos 7 / python 2.7 ansible version 1.7.1
>
> Am passing the right stuff to Runner to get the diff?   I went fishing
> through the source to come up with the syntax I'm using but not really sure
> it is correct or if I can even get diffs back from the api.
>
> Thanks,
>
> --
> 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/9fd4ad0d-ef15-4cc0-b35f-31a787fb49f7%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9fd4ad0d-ef15-4cc0-b35f-31a787fb49f7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgwga-gSewdR49-MJUTEFW10t16r2JvLq4P9ekYs5q5uJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to