Search code examples
ubuntuansiblecygwin

Ansible issue ERROR! the playbook: samplebook.yml could not be found


I am getting below error even though the file exists in the path.

ERROR! the playbook: samplebook.yml could not be found

I have used below command to run the playbook

ansible-playbook samplebook.yml

Update 1:

enter image description here

Actually below command is creating yml file as swp file

vi samplebook.yml

ls command returning only hello.txt file I'm not getting why .yml and .cfg fies not getting recognized.

swp files getting deleted once I close command window.

Am I creating yml files in wrong way?

kindly suggest how to create yml file or ansible playbook in windows 7 using Cygwin

Ansible is already installed.

enter image description here


Solution

  • Actually I'm new to vi editor.

    Below 2 links helped me a lot

    Learn vi

    vi editor

    @Zeitounator Thanks for your suggestion. The Link provided by you gave me basic insights on vi usage.