Don't fail when template_path is not defined
parent
4af63a2be5
commit
398be78bdb
|
@ -5,5 +5,6 @@ ansible_header: |
|
||||||
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') }}
|
||||||
{% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }}
|
{% if template_path is defined %}{% set _, rpath = template_path.split('roles/') %}Template: roles/{{ rpath }}
|
||||||
|
{% endif %}
|
||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
Loading…
Reference in New Issue