Ansible Copy Module - Failed

Thank you. It never show any other error. just show task failed

@Inderpreet @kodekloud-support3 @Ayman

Task failed without any errors! , files were successfully copied to all app host servers.
PFA screenshot for reference.


@Narendra096 it can be marked Success for you. Was it your today’s task or old one ?

Yes @Inderpreet , I got this today itself.
But still it is showing failed to me.

@Narendra096 should be Success now.

@Inderpreet @kodekloud-support3 @Ayman

My task was also failed without errors!, all the files were successfully copied to all the application servers.


@Inderpreet @Tej-Singh-Rana
Hi Guys,
I too getting the task as failed, but i did correctly. Also it’s not showing any error messages. Please check and let me know.
Below i have attached the screenshot for reference.

@Inderpreet @Ayman @kodekloud-support3 @rahul456
Hi
Anybody please check on this? This task was assigned by yesterday.

Hello, Surendar
Don’t worry KKE team will look. In the above, discussion on the errors. Have you customize your ansible.cfg file?

@Inderpreet @kodekloud-support3

Any updates on this issue here?

I’m not yet customize my config file.
All things i did mentioned at my inventory file like:
[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

1 Like

Hi @dinesh @Surendar Sorry for this issue. This task is marked Success for you guys.

@ 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