don't user jinja2 templating in when statements

fixes warning:

[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}.
in etckeeper role: `Found: email_configured.stdout != "{{etckeeper_user_email}}"
master
neingeist 7 years ago
parent 31e3394e0f
commit 83118cbcbe

@ -50,7 +50,7 @@
args:
chdir: /etc
warn: off
when: name_configured.stdout != "{{etckeeper_user_name}}"
when: name_configured.stdout != etckeeper_user_name
- name: "check git user.email"
command: git config user.email
@ -66,7 +66,7 @@
args:
chdir: /etc
warn: off
when: email_configured.stdout != "{{etckeeper_user_email}}"
when: email_configured.stdout != etckeeper_user_email
- name: "enable commit mails"

Loading…
Cancel
Save