Ansible playbook is not found after installation
Various reasons might be causing an error reported as FileNotFoundError: [Errno 2]
No such file or directory: 'ansible-playbook', for example:
- Incomplete installation
- Corrupted files
- A custom installation that did not include the playbook component
- Installation in non-default path
In such cases, the issue should be resolved by reinstalling Ansible from the appropriate package repository or by setting the actual installation path.
If the ansible-playbook is not found in the system because Ansible was installed in a non-default path, resolve the issue as follows.
Check the default path of the installed ansible-playbook by running the next
command:
find / -name ansible-playbook 2>/dev/null
Then, add this path to the
PATH environment. After the path is corrected, rerun the toolkit deployment.