@ -5,7 +5,7 @@ ansible_header: |
|
|||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
Ansible managed, don't modify the file locally.
|
Ansible managed, don't modify the file locally.
|
||||||
See https://git.yneran.fr/ynerant/templier-ansible.
|
See https://git.ynerant.fr/ynerant/templier-ansible.
|
||||||
{% if template_fullpath is defined %}{% set _, rpath = template_fullpath.split('roles/', 1) %}Commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git log -n 1 --pretty=format:%H -- ' + template_fullpath | quote) }}
|
{% if template_fullpath is defined %}{% set _, rpath = template_fullpath.split('roles/', 1) %}Commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git log -n 1 --pretty=format:%H -- ' + template_fullpath | quote) }}
|
||||||
{% if dirty %}Run by: {{ ansible_env.SUDO_USER }}
|
{% if dirty %}Run by: {{ ansible_env.SUDO_USER }}
|
||||||
{% else %}Author: {{ lookup('pipe', 'git log -n 1 --pretty=format:%an -- ' + template_fullpath | quote) }}
|
{% else %}Author: {{ lookup('pipe', 'git log -n 1 --pretty=format:%an -- ' + template_fullpath | quote) }}
|
||||||
|
Reference in New Issue
Block a user