diff --git a/group_vars/all/vars.yaml b/group_vars/all/vars.yaml index b5b87e94..b43a5427 100644 --- a/group_vars/all/vars.yaml +++ b/group_vars/all/vars.yaml @@ -1,10 +1,12 @@ dirty: "{{lookup('pipe', 'git diff --quiet || echo dirty')}}" ansible_header: | +++++++++++++++++++++++++++++++++++++++++++++++++++ + Ansible managed, don't modify the file locally. See https://gitlab.crans.org/nounous/ansible. Run by: {{ ansible_env.SUDO_USER }} 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 }} {% endif %} + +++++++++++++++++++++++++++++++++++++++++++++++++++