On Sun, 26 Aug 2018 at 2:39 AM, Deepak Sharma <[email protected]> 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
>


What is the error screen.-also petch1 is nowhere mentioned .whatever given
inside curly braces it taken as variable

>
>     - 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/e625498f-386a-4329-9fb4-db21244b949b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e625498f-386a-4329-9fb4-db21244b949b%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/CAJ%2BRxtRHTvKad185%2B%3D%3DF4F-bzYepCT7%2BKK_MVALbwfR7nAYVGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to