dawidd6 / action-ansible-playbook

:gear: A GitHub Action for running Ansible playbooks
MIT License
306 stars 68 forks source link

Allow to override the default ansible-playbook command #104

Open kenorb opened 1 month ago

kenorb commented 1 month ago

Currently ansible-playbook is hardcoded as:

let cmd = ["ansible-playbook", playbook]

I need it to prefix with wsl on Windows.

Would be good to allow some variable to override the default command, e.g.

cmd = os.environ.get('ANSIBLE_PLAYBOOK', 'ansible-playbook').split() + [playbook]

?

dawidd6 commented 1 month ago

Sure, a new input for this could be added. Feel free to PR.