This is not needed, as ansible is build-in in the ubuntu GitHub Runners. I'll not follow this idea further.
This action is based on alpine:3 image.
You can execute all Ansible related actions i.e, ansible or ansible-playbook.
You can also execute standard Linux commands as base Docker image is ubuntu.
Required Command to execute. Default "ansible-playbook".
uses: tomasnorre/ansible-cli-action@0.0.5
with:
command: "ansible-playbook main.yml"
This is heavily inspired and copied from https://github.com/RvuvuzelaM/ansible-cli-github-action with some build optimisations.