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}}"
This commit is contained in:
parent
31e3394e0f
commit
83118cbcbe
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue