You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi :}
Our foreman can't reach our internal repo-server, therefore we cannot sync the repository with repo-discovery. We need to upload all RPMs using the content_upload module. Since we have a lot of rpms, it would be nice if we could upload all rpms in a given directory, for example:
[...]src: /given/directory/*.rpms[...]
At the moment, the playbook fails if I try to upload multiple rpms:
[...]
[Errno 2] No such file or directory: b'/home/ansible/customrpms/*.rpm'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}[...]
Uploading a single rpm succeeds.
Or is there already a way I haven't found yet? :)
Thank you very much!
ISSUE TYPE
Feature Idea
The text was updated successfully, but these errors were encountered:
I didn't know the with_fileglob ansible loop, thank you very much! This can be the workaround for our "problem", i guess, since we do not want to make the repo-server reachable to ensure security.
Thanks :}
SUMMARY
Hi :}
Our foreman can't reach our internal repo-server, therefore we cannot sync the repository with repo-discovery. We need to upload all RPMs using the content_upload module. Since we have a lot of rpms, it would be nice if we could upload all rpms in a given directory, for example:
At the moment, the playbook fails if I try to upload multiple rpms:
Uploading a single rpm succeeds.
Or is there already a way I haven't found yet? :)
Thank you very much!
ISSUE TYPE
The text was updated successfully, but these errors were encountered: