Giter Site home page Giter Site logo

ansibank's Introduction

ansibank

Ever find yourself wishing you could review the output from a playbook you ran a few weeks ago?

... Well, now you can!

Demo Rendering by asciinema and asciicast2gif

Description

ansibank is a drop-in replacement for ansible-playbook that preserves your playbook output.

ansibank streams your ansible-playbook output as you would expect, while writing it to a local SQLite database upon completion. AWX/Tower are nifty because they store playbook output for later review - this project seeks to CLI-ify output preservation in a way that is closer to typical ansible-playbook usage.

Usage

Build

Simply clone this repository and run go install .. Ansibank can then be accessed via ansibank.

Running Playbook

Run your playbook as you would ansible-playbook, but replaced with ansibank.

For example:

ansible-playbook -e SOME_VAR=test my-playbook.yml

Would become:

ansibank -e SOME_VAR=test my-playbook.yml

The only caveat is that the code currently assumes your playbook path is the last argument to ansibank. Note that the playbook path, as with ansible-playbook, does not need to be an absolute path.

Viewing Output

Run ansibank list from the directory containing your database and select the desired playbook run.

TODO

  • Currently, playbook runs are identified by the playbook path (realpathed). If you move your playbook to a different location, it would be helpful to be able to reflect that in the database. The thought is to provide a move command here.
  • The Ansibank DB is created in the directory from where you run ansibank, with the name ansibank-db. Making this configurable would be nice.

ansibank's People

Contributors

matthewjwhite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.