I don't know if this will help, but I never prompt for a host, and never 
define one in my playbooks with anything other than a variable:

ie.
---
# Sample playbook structure
- hosts: "{{ host }}"
#  gather_facts: false
#  vars:
#    interval: 10
  tasks:
    - name: Sample Name
      copy:
        content: "Wussup"
        dest: /tmp/Jeremy_Was_Here.txt
        force: yes
        owner: root
        group: root
        mode: 0555
      notify: Wussup

  handlers:
    - name: Wussup
      service:
        name: whatever
        state: restarted

When I call my playbook I specify the host:
ansible-playbooks /path/to/sample.yml -e host=somehost

Let me know if that doesn't help and I can keep looking into the issue you 
are running into.


-- 
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/79423fa9-2b56-4111-b831-e716a6de3a11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to