Skip to content

Commit

Permalink
SSH/ Add user and group to the creation of .ssh directory
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-gonzalez committed Oct 13, 2024
1 parent 79a4aa1 commit 6758cfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/base/tasks/SSH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
ansible.builtin.file:
dest: "{{ lookup('env', 'HOME') }}/.ssh"
mode: "0700"
owner: "{{ lookup('env', 'USER') }}"
group: "{{ lookup('env', 'USER') }}"
state: directory

- name: SSH | Set authorized keys from github to user {{ lookup('env', 'USER') }}
Expand Down

0 comments on commit 6758cfc

Please sign in to comment.