# SPDX-License-Identifier: MIT
---
- name: Get file
  slurp:
    path: "{{ __file }}"
  register: __content

- name: Check for presence of ansible managed header, fingerprint
  assert:
    that:
      - __lsr_ansible_managed in content
      - __fingerprint in content
  vars:
    content: "{{ __content.content | b64decode }}"
    __lsr_ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
