I have a collection that I've built with numerous roles in it.  Under one 
of the roles, I have a files folder with some files in it used during the 
role execution.  However, I have a situation where 2 of these files keep 
erroring out saying that the source isn't found.

For example, I have one file that I use the unarchive module to extract it, 
and it works:

- name: Branding | Extract the jar file
  ansible.builtin.unarchive:
    src: files/tsose.jar
    dest: /var/tmp/guacbranding

But when I try to install an RPM that is located in the same files folder, 
I get an error stating that the source file is not found:

    - name: Install Latest RHEL 7 MySQL Connector
      ansible.builtin.yum:
        name: files/mysql-connector-j-8.0.33-1.el7.noarch.rpm
        state: present
        disable_gpg_check: true

I even tried to copy the file locally using the copy module with the 
remote_src flag set to true, but I get the same "file not found" error.  
And when I check the tar file that is created and I upload to our 
automation hub, the files are there under files.

Any ideas?

Thanks,
Harry

-- 
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/f181c8b6-30b7-4074-b88f-3e8d2210ef78n%40googlegroups.com.

Reply via email to