theforeman.foreman.compute_attribute – Manage Compute Attributes¶
Note
This plugin is part of the theforeman.foreman collection (version 2.0.0).
To install it use: ansible-galaxy collection install theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.compute_attribute
.
New in version 1.0.0: of theforeman.foreman
Parameters¶
Examples¶
- name: "Create compute attribute"
theforeman.foreman.compute_attribute:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
compute_profile: "Test Compute Profile"
compute_resource: "Test Compute Resource"
vm_attrs:
memory_mb: '2048'
cpu: '2'
state: present
- name: "Update compute attribute"
theforeman.foreman.compute_attribute:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
compute_profile: "Test Compute Profile"
compute_resource: "Test Compute Resource"
vm_attrs:
memory_mb: '1024'
cpu: '1'
state: present
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Manisha Singhal (@Manisha15) ATIX AG