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 8 years ago
parent 31e3394e0f
commit 83118cbcbe

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

Loading…
Cancel
Save