Better looking ansible_header
parent
90dc7c1c59
commit
d1a9cd4f6a
|
@ -1,10 +1,12 @@
|
||||||
dirty: "{{lookup('pipe', 'git diff --quiet || echo dirty')}}"
|
dirty: "{{lookup('pipe', 'git diff --quiet || echo dirty')}}"
|
||||||
ansible_header: |
|
ansible_header: |
|
||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
Ansible managed, don't modify the file locally.
|
Ansible managed, don't modify the file locally.
|
||||||
See https://gitlab.crans.org/nounous/ansible.
|
See https://gitlab.crans.org/nounous/ansible.
|
||||||
Run by: {{ ansible_env.SUDO_USER }}
|
Run by: {{ ansible_env.SUDO_USER }}
|
||||||
Latest commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git rev-parse HEAD') }}
|
Latest commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git rev-parse HEAD') }}
|
||||||
{% if template_path is defined %}{% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }}
|
{% if template_path is defined %}{% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
Loading…
Reference in New Issue