--- # Custom header dirty: "{% if template_fullpath is defined %}{{ lookup('pipe', 'git diff --quiet -- ' + template_fullpath | quote + ' || echo dirty') }}{% else %}{{ lookup('pipe', 'git diff --quiet || echo dirty') }}{% endif %}" ansible_header: | +++++++++++++++++++++++++++++++++++++++++++++++++++ Ansible managed, don't modify the file locally. See https://gitlab.crans.org/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 dirty %}Run by: {{ ansible_env.SUDO_USER }} {% else %}Author: {{ lookup('pipe', 'git log -n 1 --pretty=format:%an -- ' + template_fullpath | quote) }} {% endif %}Template: roles/{{ rpath }} {% else %} Run by: {{ ansible_env.SUDO_USER }} Latest commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git rev-parse HEAD') }} {% endif %} +++++++++++++++++++++++++++++++++++++++++++++++++++ glob_ldap: servers: - 172.16.42.1 base: 'dc=ynerant,dc=fr' pass: upstream: 'ssh://git@git.ynerant.fr:2222/ynerant/pass.git' dest: '.password-store/' cliutils: bash: bogus_dirs: [] git: email: ynerant@crans.org name: Yohann D'ANELLO signingkey: 3A75C55819C8CF85 bind: domains: - name: ynerant.fr administrator: ynerant.crans.org ipv4: 185.230.78.178 ipv6: 2a0c:700:12:0:f21f:afff:fee5:34ca slave: "" # 51.15.199.212 aliases: - cloud - element - git - hydrogen - mailu - notls - synapse - thelounge - traefik - translate - whoami - www