Warm tip: This article is reproduced from stackoverflow.com, please click
ansible cygwin ubuntu

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

发布于 2020-04-11 22:41:57

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

Questioner
Joseph
Viewed
74
Joseph 2020-02-04 00:45

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.