Skip to content

Commit f35ec4c

Browse files
committed
remove injected ssh key
1 parent 8485e80 commit f35ec4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

roles/builder/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@
3838
state: absent
3939
become: yes
4040

41+
- name: Delete injected ssh key
42+
file:
43+
path: /home/rocky/.ssh/authorized_keys
44+
state: absent
45+
become: yes
46+
4147
# - meta: end_here # useful for debugging, can rerun

0 commit comments

Comments
 (0)