I have installed ansible on centos 6 and it seems that I am getting the error : state is not legal…
[user@server tasks]$ ansible-playbook -v -i /home/user/ansible/ansible_hosts /home/user/ansible/amazon_vpc.yml
ERROR: state is not a legal parameter in an Ansible task or handler