GithubHelp home page GithubHelp logo

bridgecrew-perf7 / ansible-deployer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cinek810/ansible-deployer

0.0 0.0 0.0 182 KB

Command line utility wrapping ansible-playbook to run it with elevated privileges only for certain predefined tasks.

License: MIT License

Shell 56.96% Python 43.04%

ansible-deployer's Introduction

ansible-deployer

However ansible is a great tool for IT infrastructure automation in certain cases it's hard to use it for the complete deployment, because of that tools like ansible-tower/AWX try to wrap it's activity making further assumptions on the way ansible code is stored (versioning repository), the way it's executed - certain combinations of inventory/playbook/tag options used to achieve specific goals. Having it in mind ansible-deployer may be treated as yet another ansible-playbook wrapper, but focused on comprehensive command line intrface and easy YAML based configuration.

Some main fatures are

  • The results of whole excution are logged and saved together with the ansible code state for potential review in the future.
  • Only one active ansible-deployer per ansible inventory is allowed, attempt to execute ansible-deployer on already locked infrastructure will be rejected.
  • Working directory is setup per every execution of ansible-deployer separately to store the code state used. This is done by site configurable hook.
  • It's possible to lock/unlock inventory (defined as --infra --stage pairs) for manual manipulation, stopping ansible-deployer from being used.

Configuration files

  • tasks.yaml - Configuration of tasks (sets of playbooks to be executed)
  • infra.yaml - Configuration of infrastructures and stages of those mapping to ansible inventory

Examples

ansible-deployer run --task updateUsers --infra webServers --stage prod

ansible-deployer's People

Contributors

legenjcdary avatar cinek810 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.