Hi team,

I'm facing   "Source /home/yum.repos.d not found" error while running
playbook .. my playbook view like this .. please help out.
---
- name: Copy Directory Example Local to Remote
  hosts: 172.16.13.160
  become: true
  become_user: ansible
  tasks:
    - name: Copying the Directory and its contents
      copy:
        src: /home/yum.repos.d
        dest: /etc/
        remote_src: yes
        owner: root
        group: root
        mode: 0644

    - name: Copying the Directory and its contents
      become: yes
      become_user: ansible
      copy:
        src: /home/rpm-gpg
        dest: /etc/pki/
        remote_src: yes
        owner: root
        group: root
        mode: 0644

    - name: upgrade
      command: "{{ item }}"
      with_items:
        - yum update -y
        - yum upgrade -y

Error:
PLAY [Copy Directory Example Local to Remote]
***********************************************************************************************************************************************************************************************

TASK [Gathering Facts]
**********************************************************************************************************************************************************************************************************************
ok: [172.16.13.160]

TASK [Copying the Directory and its contents]
***********************************************************************************************************************************************************************************************
fatal: [172.16.13.160]: FAILED! => {"changed": false, "msg": "Source
/home/yum.repos.d not found"}

PLAY RECAP
**********************************************************************************************************************************************************************************************************************************
172.16.13.160              : ok=1    changed=0    unreachable=0    failed=1
   skipped=0    rescued=0    ignored=0

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGq4xMTD4RP2AN%3DDZxs6Sg5X0HhhPaQ%3DZq9uvZS44dYMf9tq7g%40mail.gmail.com.

Reply via email to