Remove double curly braces from variables in when
Raw jinja2 expressions can be used with when Change-Id: I7fe4d1d4189169b3832a93374e7bab00ee5b5276
This commit is contained in:
parent
3cfdf3b67d
commit
50ab9a9ba4
@ -7,12 +7,12 @@
|
||||
line: "UseDNS no"
|
||||
state: present
|
||||
insertbefore: BOF
|
||||
when: "{{disable_ssh_dns}}"
|
||||
when: disable_ssh_dns
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: Restart sshd service
|
||||
service: name=sshd state=restarted
|
||||
when: "{{disable_ssh_dns}}"
|
||||
when: disable_ssh_dns
|
||||
become: true
|
||||
become_user: root
|
||||
|
Loading…
x
Reference in New Issue
Block a user