To recover from a failure or allow to quickly reset to known state we need to know with what playbook-commit the sever is installed. This commit saves the GIT hash/status when we run the playbook in a file called git_hash.yml. It also backs up that file by copying it to the target machine.
This commit is contained in:
@ -298,3 +298,7 @@ run_setup: true
|
||||
run_self_check: true
|
||||
run_start: true
|
||||
run_stop: true
|
||||
|
||||
# Saves the git hash in a file called git_hash.yml
|
||||
# Set this to false if GIT is not installed on the local system (the system where the ansible command is run on)
|
||||
git_save_hash: true
|
Reference in New Issue
Block a user