Skip to content

Ansible Plugin to check if a repository is dirty before any deployment

Notifications You must be signed in to change notification settings

rapphil/check_dirty_repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This ansible demonstrates an ansible strategy plugin used to check if the repository in which ansible is running is out of date or has uncommited changes.

We need to use the strategy plugin because this is the only type of plugin that allows to raise Exceptions that will actually stop the execution of a playbook.

Usage

To use the plugin, you just have to create the strategy_plugins folder and add the plugin there, and update ansible.cfg accordingly.

To ignore a dirty repo, you can use the extra var IGNORE_DIRTY_REPO.

About

Ansible Plugin to check if a repository is dirty before any deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages