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
when: inventory_hostname == 'localhost'
--
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,