jstewart/robo-ansible

Ansible tasks for Robo Task Runner

Installs: 2 800

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0

Type:robo-tasks

1.1.1 2021-02-12 15:41 UTC

This package is auto-updated.

Last update: 2024-11-12 23:51:53 UTC


README

Ansbile tasks for Robo Task Runner

Build Status SensioLabsInsight

This package provides Robo tasks for the following ansible commands:

ansible

ansiblegalaxy
   delete
   help 
   import
   info 
   init
   install
   list
   login
   remove
   search
   setup

ansibleplaybook

##Installation

composer require jstewart/robo-ansible

##Usage

<?php

class RoboFile extends \Robo\Tasks
{

    use \JoeStewart\Robo\Task\Ansible\loadTasks;
    
    ...
    
?>

##Example

    public function ansible($arg = '')
    {
        $result = $this->taskAnsible()->arg($arg)->run();
        return $result;
    }

Predefined Commands

<?php

class RoboFile extends \Robo\Tasks
{

    use \JoeStewart\Robo\Task\Ansible\loadTasks;
    use \JoeStewart\Robo\Task\Ansible\AnsibleGalaxy\loadTasks;
    use \JoeStewart\Robo\Task\Ansible\AnsiblePlaybook\loadTasks;
    use \JoeStewart\Robo\Task\Ansible\Command\Ansible;
    
    ...
    
?>

Now list the avaliable commands using

./vendor/bin/robo list

##Credit

Thanks to Robo.li, greg-1-anderson and boedah for example robo code.