---

- name: Copy and check test file
  hosts: all
  tasks:
    - name: Copy test file
      ansible.builtin.copy:
        src: testfile
        dest: /tmp/testfile
        mode: preserve
    - name: Check test file
      ansible.builtin.command: grep PASS /tmp/testfile
      changed_when: false
