Ansible Copy Module - Failed

@ Inderpreet

hi,

i had the same issue with copy module, it worked fine but the task was marked failed. kindly to check.

Br.

hi @ibrahim, sorry for the issue, this is marked pending for you, please give it an another try

1 Like

hi, thanks Bro. task executed successfully.

Hi @Salim , just curious, how are you able to connect to application server without specifying ansible_ssh_pass in inventory file ?

@Inderpreet @kodekloud-support3
I have successfully completed this task but it has been marked failed. Can you please help on this

Hello, @Surendar
Please choose the “Review” option. So me and our community members will take a look into it.

Done @Tej-Singh-Rana , Can you please check on that.

[app]
172.16.238.10 ansible_user=tony ansible_password=Ir0nM@n
172.16.238.11 ansible_user=steve ansible_password=Am3ric@
172.16.238.12 ansible_user=banner ansible_password=BigGr33n

  • name: Play to copy files
    hosts: all
    become: yes
    tasks:
    • name: Task to copy files to all servers
      copy:
      src: ‘/usr/src/security/index.html’
      dest: /opt/security/index.html