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:
ikkemaniac
2022-06-19 11:30:28 +02:00
parent fe1f49d5e7
commit 80e57417f4
2 changed files with 57 additions and 0 deletions

View File

@ -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