theforeman / theforeman.foreman / 4.0.0 / module / host_errata_info Fetch information about Host Errata | "added in version" 2.1.0 of theforeman.foreman" Authors: Evgeni Golov (@evgeni)theforeman.foreman.host_errata_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 Host Errata
- name: "List installable errata for host" theforeman.foreman.host_errata_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" host: "host.example.com"
- name: "List applicable errata for host" theforeman.foreman.host_errata_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" host: "host.example.com" lifecycle_environment: "Library" content_view: "Default Organization View"
host: description: - Name of the host to fetch errata for. required: true type: str search: description: - Search query to use - If None, all resources are returned. 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 content_view: description: - Calculate Applicable Errata based on a particular Content View. - Required together with I(lifecycle_environment). - If this is set, I(organization) also needs to be set. required: false type: str organization: description: - Name of the Organization to scope the search for. required: false 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 lifecycle_environment: description: - Calculate Applicable Errata based on a particular Lifecycle Environment. - Required together with I(content_view). - If this is set, I(organization) also needs to be set. required: false type: str
host_errata: description: List of all found errata for the host and their details elements: dict returned: success type: list