Closed stwind closed 10 years ago
I was able to reproduce this error while running against ansible 1.5 (devel 89abc35e59)
Same here, both 1.4 and 1.5
Sorry for the delay.. It is fixed now.. the host module had been removed from core as it had soem issues, so it is now replaced with lineinfile
What do you mean it's fixed?
$ ansible --version
ansible 1.4.4
$ ansible-playbook site.yml
ERROR: hosts is not a legal parameter in an Ansible task or handler
Playbook:
---
# file: site.yml
- hosts: peers
roles:
- common
- peer
sudo: true
vars_files:
- passwords.yml
Commenting out lineinfile tasks makes no difference.
Removed hosts: from site.yml:
$ ansible-playbook site.yml
ERROR: hosts declaration is required
This is very confusing, since I'm trying to literally follow the guide: http://docs.ansible.com/playbooks_best_practices.html#directory-layout
I'm really sorry. I'm in the wrong repo. :palm_tree:
when commented out main.yml:77, it is working fine