Skip to content
terminal

GitHub Action

Ansible CLI

v0.0.7 Latest version

Ansible CLI

terminal

Ansible CLI

Allows one to run Ansible and Linux related commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Ansible CLI

uses: tomasnorre/[email protected]

Learn more about this action in tomasnorre/ansible-cli-client

Choose a version

Important

This is not needed, as ansible is build-in in the ubuntu GitHub Runners. I'll not follow this idea further.

Ansible CLI Github Action

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.

Inputs

command

Required Command to execute. Default "ansible-playbook".

Example usage

uses: tomasnorre/[email protected]
with:
  command: "ansible-playbook main.yml"

Disclaimer

This is heavily inspired and copied from https://github.com/RvuvuzelaM/ansible-cli-github-action with some build optimisations.