Sort out, it's working now, Thanks Brian for your help.
On Sunday, August 26, 2018 at 2:39:02 AM UTC+5:30, Deepak Sharma wrote:
>
> ---
> - hosts: all
> gather_facts: true
> sudo: true
> tasks:
>
> - name: capture linux_os
> shell: "{{ item }}"
> register: prepatch
> with_items:
> - 'uname -a'
> - 'cat /etc/resolv.conf'
> - name: create directory
> file: path=/tmp/{{petch1}} state=directory
>
> - name: create backup
> copy: {{ prepatch.stdout }} dest=/tmp/{{petch1}}-prepatch.txt
> ignore_errors: True
>
> Unable to send to remote server
>
--
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/7214cfee-4df2-412b-8b02-9ce13caa884c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.