theforeman / theforeman.foreman / 4.0.0 / module / hardware_model Manage Hardware Models | "added in version" 1.0.0 of theforeman.foreman" Authors: Evgeni Golov (@evgeni)theforeman.foreman.hardware_model (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Manage hardware models
- name: "Create ACME Laptop model" theforeman.foreman.hardware_model: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "acme laptop" info: "this is the acme laptop" state: present
info: description: - General description of the hardware model type: str name: description: - Name of the hardware model required: true type: str state: choices: - present - absent default: present description: - State of the entity 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 vendor_class: description: - The class of the machine as reported by the OpenBoot PROM. - This is primarily used by Solaris SPARC builds and can be left blank for other architectures. type: str hardware_model: description: - The class of CPU supplied in this machine. - This is primarily used by Sparc Solaris builds and can be left blank for other architectures. 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
entity: contains: hardware_models: description: List of hardware models. elements: dict type: list description: Final state of the affected entities grouped by their type. returned: success type: dict