diff --git a/tasks/check-git-repo.yml b/tasks/check-git-repo.yml index b03685e..a6bb080 100644 --- a/tasks/check-git-repo.yml +++ b/tasks/check-git-repo.yml @@ -15,7 +15,7 @@ - name: Set git repo facts ansible.builtin.set_fact: _sanity_check_ansible_git_repo_branch: >- - {{ lookup("pipe", "git rev-parse --abbrev-ref HEAD") }} + {{ lookup("pipe", "git branch --show-current") }} _sanity_check_ansible_git_repo_hash: >- {{ lookup("pipe", "git describe --always --dirty=-dirty") }}