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