Any alternative to make this work?

On Monday, January 21, 2019 at 12:48:51 PM UTC-5, Sahar wrote:
>
> Any idea how can I fix the below error?
>
>
>   tasks:
>
>
>   - name: check the state (primary/secondary/standalone)
>     asa_command:
>       commands:
>       -  'show version | i "{{ OldImage }}"'
>     register: state
>
>
>   - include: reboot.yml
>     when: '"{{ OldImage }}" in state.stdout'          
>
>
>
> Error I'm receiving:
>
>
> TASK [include] 
> *********************************************************************************************************************
>  [WARNING]: when statements should not include jinja2 templating 
> delimiters such as {{ }} or {% %}. Found: "{{ OldImage }}" in
> state.stdout
> skipping: [Fw4Script-01.tor.int 
> <http://www.google.com/url?q=http%3A%2F%2FFw4Script-01.tor.bellnhs.int&sa=D&sntz=1&usg=AFQjCNErrlpZ4qN5tiHRUxH-U5TVd8FbAw>
> ]
>  [WARNING]: when statements should not include jinja2 templating 
> delimiters such as {{ }} or {% %}. Found: "{{ OldImage }}" in
> state.stdout
> skipping: [Fw4Script-02.tor.int 
> <http://www.google.com/url?q=http%3A%2F%2FFw4Script-02.tor.bellnhs.int&sa=D&sntz=1&usg=AFQjCNFrmCYIMrLFa06W2cMq9Yfq2fcyLA>
> ]
>

-- 
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/311688c6-ec21-445d-ae3a-96e78cfc1d45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to