Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Tony_Young
Participant

Playbooks to run Gaia CLI commands via Ansible

I'm looking for any example playbooks for running commands on the GAIA CLI with Ansible 2.7. The GAIA API is not entirely an option because I still have some gateways running older code that would be rather difficult to upgrade. I tried using the ansible "command" module but Python is not installed on the gateways. Any help would be much appreciated.

0 Kudos
3 Replies
_Val_
Admin
Admin

0 Kudos
Tony_Young
Participant

I'd prefer to do this through ansible, as it ties into a larger playbook.

0 Kudos
PhoneBoy
Admin
Admin

You can use the run-script API call against the management server to execute commands on managed gateways.
This can be called thru Ansible just like any of the other Management API calls.
The gateways do not need to be on R80.x as the management server will use cprid to execute the command on the gateway.
However, the commands will be executed in expert mode, so make sure whatever command(s) you pass will run in expert mode.
Which means if you want to run clish commands, you need to execute them as clish -c command.

I don't have any specific examples handy.
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events