Closed parthaa closed 7 months ago
Added bindings to content import versions, repositories and library via foreman ansible modules.
--- - name: import to foreman hosts: localhost gather_facts: false tasks: - name: "Import repository" theforeman.foreman.content_import_repository: path: "/var/lib/pulp/exports/export-10380/Export-katello-1/1.0/2024-03-19T15-26-35-00-00" metadata: "{{ lookup('file', '/tmp/metadata.json') | from_json }}" username: "admin" password: "changeme" server_url: "http://darwin.lagrange.example.com" organization: "foo org"
you can also optionally use metadata_file instead of metadata
metadata_file
metadata
Not a full review, as I know you're still working on this, but looks pretty nice already!
You dropped the wrong register, that one is actually required
thanks @parthaa!
Added bindings to content import versions, repositories and library via foreman ansible modules.
you can also optionally use
metadata_file
instead ofmetadata