fixing handler
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Cleanup and add timestamp
|
- name: Cleanup Comments
|
||||||
tasks:
|
|
||||||
- name: Kommentare aus der Datei entfernen
|
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ authorized_keys_file }}"
|
path: "{{ authorized_keys_file }}"
|
||||||
state: absent
|
state: absent
|
||||||
regexp: '^#.*$'
|
regexp: '^#.*$'
|
||||||
|
|
||||||
- name: Kommentar hinzufügen (Modified by Ansible)
|
- name: Add Comment
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ authorized_keys_file }}"
|
path: "{{ authorized_keys_file }}"
|
||||||
marker: ""
|
marker: ""
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
state: present
|
state: present
|
||||||
with_items: "{{ good_keys }}"
|
with_items: "{{ good_keys }}"
|
||||||
notify:
|
notify:
|
||||||
- Cleanup and add timestamp
|
- Cleanup Comments
|
||||||
|
- Add Comment
|
||||||
@@ -6,4 +6,5 @@
|
|||||||
state: absent
|
state: absent
|
||||||
with_items: "{{ bad_keys }}"
|
with_items: "{{ bad_keys }}"
|
||||||
notify:
|
notify:
|
||||||
- Cleanup and add timestamp
|
- Cleanup Comments
|
||||||
|
- Add Comment
|
||||||
Reference in New Issue
Block a user