be more specific on GIT not found error

This commit is contained in:
ikkemaniac 2022-10-30 14:33:09 +01:00
parent 930867d50d
commit 3d902b7fe7

View file

@ -54,14 +54,14 @@
msg: >- msg: >-
Couldn't find GIT on the local machine. Continuing without saving the GIT hash. Couldn't find GIT on the local machine. Continuing without saving the GIT hash.
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
when: "git_describe.stderr.find('not found') != -1" when: "git_describe.stderr.find('git: not found') != -1"
- name: GIT hash error - name: Get GIT hash error
ansible.builtin.fail: ansible.builtin.fail:
msg: >- msg: >-
Error when trying to get the GIT hash. Error when trying to get the GIT hash.
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
when: "git_describe.stderr.find('not found') == -1" when: "git_describe.stderr.find('git: not found') == -1"
when: "matrix_playbook_commit_hash_preservation_enabled|bool" when: "matrix_playbook_commit_hash_preservation_enabled|bool"