Federa 35 Server default editor
by Peter Boy
In Fedora 34 the default editor was nano, for Workstation and also for Server. In my latest default F35 Server installation I noticed vim-default-editor was installed.
Did some good soul take pity and bring vim back to us or did something go wrong with my installation?
Best
Peter
1 week, 1 day
Re: WildFly
by J Beard
John,
I reworked my inventory to look like yours and same thing. Also, I think you need to update your github page. What I pulled down isn't updated to what you posted in this email chain. I'm going to look at few things later tonight.
TASK [wildfly_service : configure_properties wf26 - Configure standalone properties] ********************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: 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'"}
inventories
├── inventories/test
├── inventories/test/hosts.yml
└── inventories/test/host_vars
└── inventories/test/host_vars/f36server1.iapetus.local
├── inventories/test/host_vars/f36server1.iapetus.local/vars.yml
└── inventories/test/host_vars/f36server1.iapetus.local/vault.yml
________________________________
From: Jason Beard <jas_beard(a)hotmail.com>
Sent: Wednesday, December 28, 2022 5:21 PM
To: server(a)lists.fedoraproject.org <server(a)lists.fedoraproject.org>
Subject: Re: WildFly
I'll check the inventory stuff in a bit. Without looking I'm sure mine isn't setup like that. I'll have to fix that.
Task where it fails:
TASK [wildfly_service : configure_properties wf26 - Configure standalone properties]
On 12/28/22 12:46, John W. Himpel wrote:
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. There are many tasks in the role that attempt to copy a templatized file to the ansible target host. I believe I have supplied a name for each task that should display in the ansible.log file (if you have one) or on standard out. It would be most useful if you could tell me the name on the task that is having the issue.
Without the above information, my best guess is your "inventories" directory has an issue. Mine looks like this:
ansible/
inventories/
hosts.yml
host_vars/
testWildfly.jlhimpel.net/
vars.yml
vault.yml
Where hosts.yml contains:
---
all:
hosts:
testWildfly.jlhimpel.net:
children:
allServersGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyAllRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyInstanceRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyServiceGroup:
hosts:
testWildfly.jlhimpel.net:
wildflySslGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyVersionRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
...
Where vars.yml contains:
---
# python version on this host
ansible_python_interpreter: /usr/bin/python3
# non sensitive data
firewall_mgr: firewalld
primary_net_interface: enp1s0
# sensitive data
ansible_ssh_user: "{{ vault_ansible_ssh_user }}"
ansible_ssh_pass: "{{ vault_ansible_ssh_pass }}"
ansible_become_pass: "{{ vault_ansible_become_pass }}"
...
Where vault.yml is an encrypted file containing:
---
vault_ansible_ssh_user: XXXXX
vault_ansible_ssh_pass: XXXXX
vault_ansible_become_pass: XXXXX
(Of course, you will need to provide your local values for XXXXX).
Let me know if any of this helps.
John
...
_______________________________________________
server mailing list -- server(a)lists.fedoraproject.org<mailto:server@lists.fedoraproject.org>
To unsubscribe send an email to server-leave(a)lists.fedoraproject.org<mailto:server-leave@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
_______________________________________________
server mailing list -- server(a)lists.fedoraproject.org<mailto:server@lists.fedoraproject.org>
To unsubscribe send an email to server-leave(a)lists.fedoraproject.org<mailto:server-leave@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
2 months, 3 weeks
Re: WildFly
by John W. Himpel
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. There are many tasks in the role that attempt
to copy a templatized file to the ansible target host. I believe I
have supplied a name for each task that should display in the
ansible.log file (if you have one) or on standard out. It would be
most useful if you could tell me the name on the task that is having
the issue.
Without the above information, my best guess is your "inventories"
directory has an issue. Mine looks like this:
ansible/
inventories/
hosts.yml
host_vars/
testWildfly.jlhimpel.net/
vars.yml
vault.yml
Where hosts.yml contains:
---
all:
hosts:
testWildfly.jlhimpel.net:
children:
allServersGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyAllRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyInstanceRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyServiceGroup:
hosts:
testWildfly.jlhimpel.net:
wildflySslGroup:
hosts:
testWildfly.jlhimpel.net:
wildflyVersionRemoveGroup:
hosts:
testWildfly.jlhimpel.net:
...
Where vars.yml contains:
---
# python version on this host
ansible_python_interpreter: /usr/bin/python3
# non sensitive data
firewall_mgr: firewalld
primary_net_interface: enp1s0
# sensitive data
ansible_ssh_user: "{{ vault_ansible_ssh_user }}"
ansible_ssh_pass: "{{ vault_ansible_ssh_pass }}"
ansible_become_pass: "{{ vault_ansible_become_pass }}"
...
Where vault.yml is an encrypted file containing:
---
vault_ansible_ssh_user: XXXXX
vault_ansible_ssh_pass: XXXXX
vault_ansible_become_pass: XXXXX
(Of course, you will need to provide your local values for XXXXX).
Let me know if any of this helps.
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
2 months, 3 weeks
Re: WildFly
by John W. Himpel
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
2 months, 3 weeks
WildFly
by Jason Beard
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'"
}
~~~
2 months, 3 weeks
Discussion of our working program 2023 - F38 / F39
by Peter Boy
Summery of our planning as of 2022-12-07
Using Ansible to install and configure Wildfly
==============================================
Jwhimpel has already put a lot of work into it, but is now stuck with a certificate problem at Wildfly.
We need more resources for this project.
Keeping documentation up to date
================================
The problem is to keep this challenge manageable.
Concept: In a revolving process determine the oldest 5 articles and update them.
Mowest is concidering to take care and coordination
Fedora Website Revamp - Fedora Server part
==========================================
Mowest is concidering to take care and coordination
Review installation media
=========================
This is a group of several individual Issues. And we've been putting this off for a while.
The worst issue here is the difference between our Std and the Net media.
pboy wants to work on this, but more participation would be helpful, preferably by someone with experience in creating installation media.
Creating a Fedora Server test week
==================================
cooltshirtguy will check
Identity Management
===================
eseyman is planning to dive in here
3 months