Files
operating-automation/roles/manage-ssh-keys/tasks/remove-badkeys.yml
2026-02-20 13:56:27 +01:00

10 lines
203 B
YAML

---
- name: Remove bad keys
lineinfile:
path: "{{ authorized_keys_file }}"
line: "{{ item }}"
state: absent
with_items: "{{ bad_keys }}"
notify:
- Cleanup Comments
- Add Comment