diff --git a/group_vars/all/vars.yaml b/group_vars/all/vars.yaml index 8a6a9810..b5b87e94 100644 --- a/group_vars/all/vars.yaml +++ b/group_vars/all/vars.yaml @@ -5,5 +5,6 @@ ansible_header: | 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') }} - {% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }} + {% if template_path is defined %}{% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }} + {% endif %} +++++++++++++++++++++++++++++++++++++++++++++++++++