|
|
@ -25,7 +25,7 @@
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
become: false
|
|
|
|
become: false
|
|
|
|
register: git_describe
|
|
|
|
register: git_describe
|
|
|
|
shell:
|
|
|
|
ansible.builtin.shell:
|
|
|
|
git describe
|
|
|
|
git describe
|
|
|
|
--always
|
|
|
|
--always
|
|
|
|
--tags
|
|
|
|
--tags
|
|
|
@ -33,15 +33,15 @@
|
|
|
|
--long
|
|
|
|
--long
|
|
|
|
--all
|
|
|
|
--all
|
|
|
|
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
- ansible.builtin.set_fact:
|
|
|
|
git_hash: "{{ git_describe.stdout }}"
|
|
|
|
git_hash: "{{ git_describe.stdout }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Git hash
|
|
|
|
- name: Git hash
|
|
|
|
debug:
|
|
|
|
ansible.builtin.debug:
|
|
|
|
msg: "Git hash: {{ git_hash }}"
|
|
|
|
msg: "Git hash: {{ git_hash }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Save git_hash.yml on target
|
|
|
|
- name: Save git_hash.yml on target
|
|
|
|
copy:
|
|
|
|
ansible.builtin.copy:
|
|
|
|
content: "{{ git_hash }}"
|
|
|
|
content: "{{ git_hash }}"
|
|
|
|
dest: "{{ matrix_base_data_path }}/git_hash.yml"
|
|
|
|
dest: "{{ matrix_base_data_path }}/git_hash.yml"
|
|
|
|
owner: "{{ matrix_user_username }}"
|
|
|
|
owner: "{{ matrix_user_username }}"
|
|
|
|