Revert "convert shell to command usage" to allow for a catching the specific "git: not found" error.
This reverts commit 45c9c2b17a
.
This commit is contained in:
parent
45c9c2b17a
commit
93615b6ad9
@ -26,14 +26,13 @@
|
|||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
become: false
|
become: false
|
||||||
register: git_describe
|
register: git_describe
|
||||||
ansible.builtin.command:
|
ansible.builtin.shell:
|
||||||
cmd: >-
|
git describe
|
||||||
git describe
|
--always
|
||||||
--always
|
--tags
|
||||||
--tags
|
--dirty
|
||||||
--dirty
|
--long
|
||||||
--long
|
--all
|
||||||
--all
|
|
||||||
|
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
git_hash: "{{ git_describe.stdout }}"
|
git_hash: "{{ git_describe.stdout }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user