Ansible: How to change active directory in Ansible Playbook?

Question:


When I run my playbook, I get:

Any help is much appreciated.

Answer:

There’s no concept of current directory in Ansible. You can specify current directory for specific task, like you did in your playbook. The only missing part was the actual command to execute. Try this:

Leave a Reply