feat (roles): copies a config with hosts rules in human admin ~/.ssh
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
group: "{{ human_admin_user }}"
|
||||
mode: u=rw,g=r,o-rwx
|
||||
|
||||
- name: Configure ssh client, by pushing the config
|
||||
remote_user: ansible
|
||||
ansible.builtin.copy:
|
||||
src: "{{ role_path }}/files/ssh_config"
|
||||
dest: "/home/{{ human_admin_user }}/.ssh/config"
|
||||
owner: "{{ human_admin_user }}"
|
||||
group: "{{ human_admin_user }}"
|
||||
mode: u=rw,g=r,o-rwx
|
||||
|
||||
|
||||
# WARNING: we've finished with the initial setup, drop ansible key
|
||||
# Push regular user key
|
||||
|
||||
Reference in New Issue
Block a user