hubot-ansible
A hubot script for launching ansible commands
Last updated 5 years ago by vspiewak .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-ansible 
SYNC missed versions from official npm registry.

Hubot Script Ansible

Description

A hubot script for launching ansible commands

See src/scripts/ansible.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-ansible --save

Then add hubot-ansible to your external-scripts.json:

[
  "hubot-ansible"
]

Configuration

hubot-ansible can use hubot-auth for restrict usage to certains roles.

hobot-ansible use slack-attachment for nice integration with Slack.

Sample Interaction

vspiewak> Hubot ansible webserver date
Hubot> admin@webserver: date
173.194.45.83 | success | rc=0 >>
Sun Nov  8 11:27:55 CET 2015

vspiewak> Hubot ansible-sudo webserver /etc/init.d/ntp restart
Hubot> admin@webserver: sudo /etc/init.d/ntp restart
173.194.45.83 | success | rc=0 >>
Restarting ntp (via systemctl): ntp.service.

vspiewak> Hubot ansible-as go gocd ps
Hubot> admin@gocd: sudo -iu go ps
173.194.45.83 | success | rc=0 >>
 PID TTY          TIME CMD
30912 pts/0    00:00:00 sh
30913 pts/0    00:00:00 python
30914 pts/0    00:00:00 sh
30915 pts/0    00:00:00 ps

Contribute

Just send pull request or file an issue !

Copyright

Copyright © Vincent Spiewak. See LICENSE for details.

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

2 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (10)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |