2025-12-23 19:17:16 +08:00

16 lines
304 B
YAML

---
- name: Copy Authorized Keys from ubuntu to root User
copy:
src: /home/ubuntu/.ssh/authorized_keys
dest: /root/.ssh/authorized_keys
mode: 0600
remote_src: yes
- name: Remove Ubuntu User
user:
name: ubuntu
state: absent
remove: yes
force: yes
ignore_errors: yes