Level 1 Ansible Test Task 4 Copy File On App Server 3

Support,

i created a playbook (playbook-t2q6.yml) and check the playbook for errors and ran the playbook successfully. The task requests the file (blog-t2q6.txt) to be copied to a location (/opt/security-t2q6) This was done, but the task was marked as incorrect. See the screenshots to show the playbook was ran and the file created successfully.

Please advise.

Hi @amaruxia

Can you please share the updated playbook YAML file?

Hi Santosh,

I don’t have access to the file. But this is what I included in the updated version.


  • hosts: stapp03
    become: true
    tasks:
    • name: Copy blog-t2q6.txt to /opt/security-t2q6 on remote hosts
      ansible.builtin.copy:
      src: /usr/src/security-t2q6/blog-t2q6.txt
      dest: /opt/security-t2q6/
      remote_src: yes