Added task to set SSH key permission
This commit is contained in:
parent
c581d1536a
commit
96e0eb3884
@ -41,3 +41,10 @@
|
|||||||
manage_dir: '{{ should_manage_dir }}'
|
manage_dir: '{{ should_manage_dir }}'
|
||||||
key: "{{ ssh_deployment_key }}"
|
key: "{{ ssh_deployment_key }}"
|
||||||
|
|
||||||
|
- name: Set ownership and permissions for SSH private key
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: '/home/{{ ssh_host_user }}/{{ ssh_key_path }}'
|
||||||
|
owner: 1000
|
||||||
|
group: 1000
|
||||||
|
mode: 0600
|
||||||
|
delegate_to: localhost
|
||||||
|
Loading…
Reference in New Issue
Block a user