Ansible ansible-playbook parameter pass issue > ERROR! playbooks must be a list of plays

ERROR! playbooks must be a list of plays

The error appears to have been in 'env/dev': line 1, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

localhost ansible_ssh_port=22 ansible_ssh_host= ansible_connection=local
^ here

Solution: you will get such issue, if you are not passing -i parameter before your inventory file, as that file is unreachable.

Note correct
ansible-playbook env/dev web.yml

Correct formatted web.yml
ansible-playbook -i env/dev web.yml

PLAY RECAP *********************************************************************

localhost                  : ok=6    changed=3    unreachable=0    failed=0


  1. Works like anything ansible-playbook -i env/dev web.yml, only -i were missing.

    1. Great Article android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training


Please provide your input, it will honer for me...