Remove double curly braces from variables in when

Raw jinja2 expressions can be used with when

Change-Id: I7fe4d1d4189169b3832a93374e7bab00ee5b5276
This commit is contained in:
Sai Sindhur Malleni 2017-08-03 14:07:19 -04:00
parent 3cfdf3b67d
commit 50ab9a9ba4

View File

@ -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