Greetings! In regards to Wildfly below is the error I'm getting in the Ansible playbook run.
The error is in the jinja2 template. I'm pretty sure I can update it a different way but I wasn't sure that the current setting is a necessity. I'm an Ansible newbie so I tend to ask before I change things.
Let me know if you need any other information.
Thanks,
Jason
Error:
~~~
ansible.errors.AnsibleUndefinedVariable: {{ hostvars[inventory_hostname]["ansible_env"].SSH_CONNECTION.split(" ")[2] }}: 'dict object' has no attribute 'SSH_CONNECTION'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ansible/plugins/action/template.py", line 150, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False)
File "/usr/lib/python3.8/site-packages/ansible/template/__init__.py", line 1176, in do_template
raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: {{ hostvars[inventory_hostname]["ansible_env"].SSH_CONNECTION.split(" ")[2] }}: 'dict object' has no attribute 'SSH_CONNECTION'
fatal: [f36server1.iapetus.local]: FAILED! => {
"changed": false,
"msg": "AnsibleUndefinedVariable: {{ hostvars[inventory_hostname][\"ansible_env\"].SSH_CONNECTION.split(\" \")[2] }}: 'dict object' has no attribute 'SSH_CONNECTION'"
}~~~
Jason,
_______________________________________________server mailing list -- server@lists.fedoraproject.orgTo unsubscribe send an email to server-leave@lists.fedoraproject.orgFedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelinesDo not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue