What should current_host be replaced with so that the below only runs for 
the host localhost? 

---

- hosts: all

 sudo: yes

 tasks:

 - name:play_hosts
  debug: var=play_hosts
   when: current_host == "localhost"





-- 
Xtratherm Limited is a limited company registered in Ireland. Registered 
number: 331130. Registered office: Kells Road, Navan, Co. Meath. Directors: 
D.E. Hynes, E.J. Hynes, S.K. Steenson, J. Keegan, B. Rafferty, T. Hynes. 
VAT Registration: IE6351130B
Xtratherm UK Limited is a limited company registered in England and Wales. 
Registered number: 4404208. Registered office: Holmewood Industrial Park, 
Park Road, Chesterfield, Derbyshire S42 5UY. VAT Registration: GB787574856
Please note that [Xtratherm Limited/Xtratherm UK Limited] may monitor 
e-mail traffic data and content of e-mail for the purpose of security and 
training.

-- 
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/b676a295-5431-4d3a-8e7a-053f61a3afa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to