restructure repo
This commit is contained in:
13
roles/manage-ssh-keys/handlers/main.yml
Normal file
13
roles/manage-ssh-keys/handlers/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- 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 }}
|
||||
Reference in New Issue
Block a user