I’m trying to take advantage of the “register host” functionality with foreman ansible.
i have a non-root remote user set for remote execution.
Remote Execution: Yes
for the register host generator.
I run it on the target host. it created the homedir and copied over the ssh key. great.
but… It doesnt chown the home directory to the username??
So ssh as the user with key doesnt work until I go and manually ssh into the host (or use a playbook) to chown the homedir.
The user exists in LDAP. All Im doing is chowning.
Why isnt the automated setup for “Register Host” doing this though?