GitXplorerGitXplorer
m

ansibrest

public
31 stars
1 forks
5 issues

Commits

List of commits on branch master.
Unverified
81598bb61d51d9836120337730c70d75f803462e

version bump 1.1.2

mmuddydixon committed 8 years ago
Unverified
be6bd14029dfb2bf81aa47cfd4d44efced2248e2

Merge branch 'fix/websocket'

mmuddydixon committed 8 years ago
Unverified
29b21f36bb34be98f017e7e8e3bc4160e8055af4

add connect error on client

mmuddydixon committed 8 years ago
Unverified
1a7c0b4f3307fa31761d820094846094afdc53cf

Merge branch 'feature/extra_vars'

mmuddydixon committed 8 years ago
Unverified
d2cf03d5839290fdb91da501997dfe311b54a169

updated built js

mmuddydixon committed 8 years ago
Unverified
deb2fb175b1e0f7797d6919abe7cbf3f2729cbc0

refactored ansible command

mmuddydixon committed 8 years ago

README

The README file for this repository.

Ansibrest - Ansible REST Server

Abstract

Start REST Server to execute local ansible.

How to use

% npm install ansibrest -g
% ansibrest -h

  Usage: ansibrest [options]

  Options:

    -h, --help                         output usage information
    -p,--port <PORT>                   PORT
    --endpoint <ENDPOINT>              ENDPOINT
    --ansible-path <ANSIBLE_PATH>      ANSIBLE_PATH
    --inventory-path <INVENTORY_PATH>  INVENTORY_PATH

Dockerize

docker run -d -p 2400:2400 -v $ANSIBLE_PATH:/opt/ansible muddydixon/ansibrest
docker run -d -p 2400:2400 -v $YOURANSIBRRESTFILE:/opt/ansibrest/.ansibrest \
                           -v $ANSIBLE_PATH:/opt/ansible \
                           muddydixon/ansibrest

Contribute

% npm install -g git://github.com/muddydixon/ansibrest.git
% cd someproject/
% ls -l
ansible/
% ls ansible
sample1.yml sample2.yml inventories/
% ansibrest --ansible-path ./ansible --inventory-path inventories
% curl -X POST -d "host=samplehost001" -d "startAt=Some Task" "http://localhost:8080/api/playbook/sample1.yml"

Screens

Top

Playbook Tasks

Config

Execute Playbook