Add a lot of ansible headers

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-03-17 23:33:31 +01:00
parent 7d401e9f00
commit b0d8cdaf72
22 changed files with 59 additions and 16 deletions

View File

@ -5,7 +5,7 @@ ansible_header: |
+++++++++++++++++++++++++++++++++++++++++++++++++++
Ansible managed, don't modify the file locally.
See https://gitlab.crans.org/nounous/ansible.
See https://gitlab.crans.org/ynerant/templier-ansible.
{% if template_path is defined %}{% set _, rpath = template_path.split('roles/', 1) %}Commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git log -n 1 --pretty=format:%H -- ' + template_path | quote) }}
{% if dirty %}Run by: {{ ansible_env.SUDO_USER }}
{% else %}Author: {{ lookup('pipe', 'git log -n 1 --pretty=format:%an -- ' + template_path | quote) }}