Make tls_everywhere validations compatible with ansible_facts
Via [1] we cannot rely on ansible_* vars anymore. So let's switch to
ansible_facts. This should fix the following error:
2021-04-22 22:08:36,708 p=36100 u=mistral n=ansible | fatal:
[undercloud]: FAILED! => {"msg": "The task includes an option with an
undefined variable. The error was: {{ tls_everywhere_undercloud_fqdn |
default(ansible_fqdn) }}: 'ansible_fqdn' is undefined\n\nThe error
appears to be in
'/usr/share/ansible/roles/tls_everywhere/tasks/ipa-server-check.yaml':
line 59, column 7, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n\n -
name: kinit as the host entity\n ^ here\n"}
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- validations/ +/787835 /opendev. org/openstack/ tripleo- validations/ commit/ b63d45a2c6d108c 3ad62b098a07af7 2736650755
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b63d45a2c6d108c 3ad62b098a07af7 2736650755
Author: Michele Baldessari <email address hidden>
Date: Sat Apr 24 11:12:45 2021 +0200
Make tls_everywhere validations compatible with ansible_facts
Via [1] we cannot rely on ansible_* vars anymore. So let's switch to
ansible_facts. This should fix the following error:
2021-04-22 22:08:36,708 p=36100 u=mistral n=ansible | fatal: undercloud_ fqdn | ansible_ fqdn) }}: 'ansible_fqdn' is undefined\n\nThe error /usr/share/ ansible/ roles/tls_ everywhere/ tasks/ipa- server- check.yaml' :
[undercloud]: FAILED! => {"msg": "The task includes an option with an
undefined variable. The error was: {{ tls_everywhere_
default(
appears to be in
'
line 59, column 7, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n\n -
name: kinit as the host entity\n ^ here\n"}
Closes-Bug: #1925999
[1] https:/ /opendev. org/openstack/ tripleo- heat-templates/ commit/ 4e79336d69e6b7f a4b026922bac795 3bafeee96d
Change-Id: If23c41d343678d cbbd0b4aae10ca6 281a33e385f