Files
Ansible Servercow ba83e096b8 fixing handler
2024-11-21 16:12:20 +01:00

14 lines
337 B
YAML

---
- name: Cleanup Comments
lineinfile:
path: "{{ authorized_keys_file }}"
state: absent
regexp: '^#.*$'
- name: Add Comment
blockinfile:
path: "{{ authorized_keys_file }}"
marker: ""
block: |
# Modified by Ansible on {{ ansible_date_time.date }} at {{ ansible_date_time.time }}