Hammer repository upload-content automation with ansible

hammer repository upload-content --organization ORGANIZATION_NAME --product “Product_Name” --name “Repo_name” --path “path of the file”

I want assistance to automate this manual process with ansible playbook which prompt for

[Foreman] Username: “username”
[Foreman] Password for username: passwd

how to make it successfull upload and also sometimes it will give bad gateway error

Use theforeman.foreman.content_upload module to upload your packages to a repository. The src/file is uploaded from the remote/target machine, not implicitly from your control node. It can be run on localhost and uploaded from your control node if that is preferred.

You can also use the certified redhat.satellite.content_upload module if you’re using Red Hat Satellite.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.