Sai Sindhur Malleni 50ab9a9ba4 Remove double curly braces from variables in when
Raw jinja2 expressions can be used with when

Change-Id: I7fe4d1d4189169b3832a93374e7bab00ee5b5276
2017-08-03 14:07:19 -04:00

19 lines
486 B
YAML

# Disables DNS lookup in the overcloud sshd config file. Speeds up operations in environments with slow dns servers hugely.
---
- name: Disable DNS resolution in Overcloud sshd config
lineinfile:
dest: /etc/ssh/sshd_config
line: "UseDNS no"
state: present
insertbefore: BOF
when: disable_ssh_dns
become: true
become_user: root
- name: Restart sshd service
service: name=sshd state=restarted
when: disable_ssh_dns
become: true
become_user: root