Don't fail when template_path is not defined

certbot_on_virtu
_pollion 2020-04-16 18:05:39 +02:00
parent 4af63a2be5
commit 398be78bdb
1 changed files with 2 additions and 1 deletions

View File

@ -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 %}
+++++++++++++++++++++++++++++++++++++++++++++++++++