mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-11-02 03:34:15 +00:00
bin/ansible-python.sh runs Python with the interpreter named in the first line of `ansible-playbook`. That interpreter has PyYAML, since Ansible depends on it, even when Ansible is installed in an environment of its own (e.g. with pipx), where the system's `python3` may lack it. If it is not a Python interpreter (e.g. `ansible-playbook` is a wrapper script), or Ansible is missing, `python3` is used. Role installation, which needs PyYAML, is the first to use it in the next commit, so that it works without installing PyYAML separately. The same script in mash-playbook (where its tests live): https://github.com/mother-of-all-self-hosting/mash-playbook/commit/1fe0f90f Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>