Skip to content

Commit

Permalink
remove keys on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Dec 13, 2024
1 parent 355cabb commit 95ad7c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@

- name: Remove SSH key from authorized_keys
lineinfile:
path: ~/.ssh/authorized_keys
path: "/home/{{ new_user }}/.ssh/authorized_keys"
state: absent
line: "{{ sshkey }}"
when: operation == 'delete'

0 comments on commit 95ad7c9

Please sign in to comment.