Skip to content

joestewart/robo-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robo-ansible

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.

About

Ansible tasks for Robo.li runner

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages