Code Monkey home page Code Monkey logo

ansible_require_check_mode_before_deploy's Introduction

This is not the project you want

TODO(jonas): .....

I spent ~2 hours trying to make ChatGPT write this for me. It came close but no cigar, threw this project together in 30 minutes. Actually somewhat useful so might revisit and clean up; but ... prematurely publicizing just so that I can easily share it to a couple of folks..

Example Usage

Example playbook playbooks/foobar_servers.yml:

- name: Example playbook that verifies that each unique Git revision of the
        project runs in check-mode ("--check") at least once before actually
        deploying state to targeted hosts
  hosts: foobar_servers
  tasks:
    - name: Require check-mode prior to deploy
      require_check_mode_before_deploy:
        playbook: playbooks/foobar_servers.yml

It does not matter how or when the module runs but it likely makes most sense to run it first in the playbook, alongside any other pre-flight sanity-checks. The module runs locally regardless of the play hosts selection.

Running Tests

Run all tests:

./tests/run_all_tests.sh

Authors

Licensing

Do What The Fuck You Want To Public License, Version 2. Refer to LICENSE_WTFPL.txt and http://www.wtfpl.net/.

ansible_require_check_mode_before_deploy's People

Contributors

jonasjberg 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.