Hey,
This is potentially something that is frowned upon, but I’m trying to add SSH keys to a server via Ansible so that the destination server can use these keys later for other operations.
So I am trying to do the following:
`
- name: add default ssh keys
become: true
copy:
src: ./.ssh/
dest: ~/.ssh
mode: 400
force: true
`
I would expect to see the keys added and set to read only:
-r--------
However, when looking at the keys on the destination server I’m seeing this:
-rw--w----
Is there any particular reason why they do not have the permissions I’m asking?
Or is there a way I can upload them and then update all keys in that folder to be read only?
Thanks,
Gary