cddac5f1e9
So currently if some optional openstack service is not installed metadata will fail when it tires to work on its config file. This commit adds in a check for the existance of each service config before running the gathering tasks. What might be a useful addition to this commit would be some logic for determining which services should never be missing and alerting the user. Change-Id: Ie360f062646cb5431de9ed21bd0dd193b84ddcda
15 lines
453 B
YAML
15 lines
453 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
|
|
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
|