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

I’m on Windows Enviroment.

Everytime time I log into vagrant using ssh and run the command ansible-playbook server.yml -e env=production

it comes back with console message: ERROR! the playbook: server.yml could not be found

I don’t understand why its not working.

Thank you

Does the file server.yml exist in the folder where you’re running the command? I believe you need to be in /vagrant which is where the file is.

Correct the files are located in the /vagrant directory!

Thank you very much!

1 Like