Hi,

   regex_replace in local_action stopped working after upgrade to 2.0.2. it 
worked fine in 1.9.2
   the same expression works fine when executed on remote hosts . 
   is there something missing in our upgrade maybe?
   i would appreciate any suggestions. 
   Also , this is just an example. i understand i can just use 
ansible_hostname in this case..
   

 - debug: msg=" {{ inventory_hostname| 
regex_replace('^([a-z0-9]*)\\.(.*)$','\\1')}}"
 - local_action: shell echo "  {{ inventory_hostname| 
regex_replace('^([a-z0-9]*)\\.(.*)$','\\1')}}"
 - local_action: command echo "  {{ inventory_hostname| 
regex_replace('^([a-z0-9]*)\\.(.*)$','\\1')}}"


thanks in advance,
Inna

-- 
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/4221c0ba-b66a-4cc5-95fe-95a6a333cd61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to