Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

Ansible CLI

0.0.2

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

Ansible CLI Github Action

This action is based on ubuntu:focal 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.