Skip to content
Snippets Groups Projects
Commit 5a1b4e0c authored by ale's avatar ale
Browse files

Retrieve git revision of the top-level git repository

If this is included as a submodule, we'd get the revision for this
repository instead of the parent one.
parent e8fcc8ef
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,10 @@
# configuration.
# Define parameters associated with the source.
- local_action: shell git rev-parse HEAD
- local_action:
module: shell
_raw_params: git rev-parse HEAD
chdir: {{ playbook_dir }}
register: git_revision_cmd
run_once: true
become: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment