🐞 Bug - ssh_config not working #11
Labels
No labels
bug
duplicate
enhancement
good first issue
help wanted
invalid
question
todo
todo 🗒️
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
stationgroup/ansible-experiments#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This example entry below, and any other entry I add in the
ssh_config:line doesn't seem to insert these config option into my servers.stationgroup/ansible-experiments@f425969a79/add-users-groups-authorized_keys-dot-files/group_vars/all (L37-L38)Also the whole
~/.ssh/configfile is empty.less ~/.ssh/configOn a related note this
ssh-config/defaults/main.ymlfile is empty. Is that on purpose?CC: @vincentvdk
x-post: https://github.com/stationgroup/ansible-experiments/issues/9
I'll have a look this evening
This is weird because it works without problems here. What version of Ansible is being used? Could you post the output of the Ansible run?
I tried it on a staging setup and I get a different error related to this same step.
(Staging environment)
(Click to expand code)
ansible 2.6.2I'm using a different
ansible.cfgand dynamic inventory.(dev environment)
I'm using a your provided
ansible.cfgand a similarhostsfile.Posting output of ansible on slexy. Because Github doesn't like that much output: (comment is too long (maximum is 65536 characters).
Do you have the following host_var set:
ssh_short_name?example:
10.106.116.139 ssh_short_name=host2 ansible_user=rootI've also noticed something with the way the templating works to generate the ssh_config blocks. I need to look a bit further into that so I can fix that.
I’ll check in about 15-20hours. I didn’t manually set that. So probably not?
On Tue, Sep 4, 2018 at 22:13 Vincent Van der Kussen <
notifications@github.com> wrote:
My understanding of what you wrote is that I will have to get the host info from my Ansible controllers
hostsfile. Is there a way to make this work with a dynamic inventory?Can Ansible get the host name from the host it self on Ubuntu and FreeBSD?
Depending on what you exactly need, you have some options amongst the gathered_facts (check
ansible localhost -m setup):Some work got in the way to look at this. Will do that in the next few days.
I merged your changes in
stationgroup/ansible-experiments@f708bc9c80. It stops the problem I had with errors, but it doesn't seem to add my entries ingroup_vars/allto~/.ssh/config(Click to expand group_vars/all)
I'm using:
as per PR #12
I've made some minor changes to fix issues a chicken and egg issue with FreeBSD. But nothing that should have broke ssh_config.
(Click to expand roles/users/tasks/users.yml)
Just tested the ssh config playbook and this just works. Are you looking at the ssh config file of the correct user (wild guess)?
I'll have a look at #13 too later on
Resolved ✅