On Wed, 2022-12-28 at 11:35 -0600, Jason Beard wrote:
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,
Thanks for the report. I will try to look into this issue before I
leave on a multi-day trip late today.
John
_______________________________________________
server mailing list -- server(a)lists.fedoraproject.org
To unsubscribe send an email to server-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/server@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue