On Wed, 7 Jun 2023 11:16:35 -0700 (PDT) "lift...@gmail.com" <lifte...@gmail.com> wrote:
> - ansible.builtin.yum: > name: files/mysql-connector-j-8.0.33-1.el7.noarch.rpm > > 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. Absolute path on the remote host is required if spec.endswith('.rpm') or '://' in spec: if '://' not in spec and not os.path.exists(spec): res['msg'] += "No RPM file matching '%s' found on system" % spec https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/yum.py#L1040 -- Vladimir Botka -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20230608021025.7d1fb785%40gmail.com.
pgpMLO71NKjcL.pgp
Description: OpenPGP digital signature