theforeman / theforeman.foreman / 4.0.0 / module / repository_set_info Fetch information about Red Hat Repositories | "added in version" 2.1.0 of theforeman.foreman" Authors: William Bradford Clark (@wbclark)theforeman.foreman.repository_set_info (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Fetch information about Red Hat Repositories
- name: "Find repository set by name and product." theforeman.foreman.repository_set_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" name: "Red Hat Enterprise Linux 7 Server (RPMs)" product: "Red Hat Enterprise Linux Server"
- name: "Find repository set by label." theforeman.foreman.repository_set_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" search: 'label = "rhel-7-server-rpms"'
name: description: - Name of the resource to fetch information for. - Mutually exclusive with I(search). required: false type: str search: description: - Search query to use - If None, and I(name) is not set, all resources are returned. - Mutually exclusive with I(name). type: str product: description: - Name of the parent product required: false type: str location: description: - Label of the Location to scope the search for. required: false type: str password: description: - Password of the user accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD) will be used instead. required: true type: str username: description: - Username accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME) will be used instead. required: true type: str server_url: description: - URL of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL) will be used instead. required: true type: str organization: description: - Name of the Organization to scope the search for. required: true type: str validate_certs: default: true description: - Whether or not to verify the TLS certificates of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS) will be used instead. type: bool
repository_set: description: Details about the found Red Hat Repository. returned: success and I(name) was passed type: dict repository_sets: description: List of all found Red Hat Repositories and their details. elements: dict returned: success and I(search) was passed type: list