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
Requires
- php: >=5.5.0
- consolidation/robo: ~1
- symfony/event-dispatcher: ~2.5|~3.0|~4.0
Requires (Dev)
- phpunit/phpunit: >=4.4
This package is auto-updated.
Last update: 2024-11-12 23:51:53 UTC
README
Ansbile tasks for Robo Task Runner
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.