Sorry my bad, it missed it. it's working perfectly now, Thanks much !!

TASK [debug] 
*******************************************************************************************************************************************
ok: [rchtest01] => {
    "host_fqdn": "rchtest01.lab.com"
}



On Tuesday, 19 February 2019 21:33:26 UTC+5:30, Kai Stian Olstad wrote:
>
> On 19.02.2019 16:57, Pandu jh wrote: 
> > This was the error. 
> > 
> > TASK [set_fact] 
> > 
> ****************************************************************************************************************************************
>  
>
> > fatal: [rchtest01]: FAILED! => {"msg": "template error while templating 
> > string: expected token 'end of print statement', got 'string'. String: 
> > {{ 
> > host_fqdn if 'lab.com' in host_fqdn else host_fqdn  '.lab.com' }}"} 
>
> You are missing the tilde ~ in you syntax, check my previous mail and 
> you'll see the tilde. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/61fbdefb-837b-4ada-a621-0a747bdfdd30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to