
Raw jinja2 expressions can be used with when Change-Id: I7fe4d1d4189169b3832a93374e7bab00ee5b5276
19 lines
486 B
YAML
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
|