uyuni_project.uyuni.apply_states module – Apply states for a host
Note
This module is part of the uyuni_project.uyuni collection (version 0.5.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install uyuni_project.uyuni.
To use it in a playbook, specify: uyuni_project.uyuni.apply_states.
Synopsis
Apply states for a host
Parameters
Parameter |
Comments |
|---|---|
Name or profile ID of the managed host |
|
Name of states to apply |
|
Only simulate applying the states Choices:
|
|
Uyuni API endpoint URL |
|
Uyuni login password |
|
Uyuni API endpoint port Default: |
|
Uyuni login user |
|
Verify SSL certificate Choices:
|
Examples
- name: Apply states
uyuni_project.uyuni.apply_states:
uyuni_host: 192.168.1.1
uyuni_user: admin
uyuni_password: admin
name: server.localdomain.loc
states:
- backup-agent
- monitoring-agent
- lolcat
- name: Simulate applying states
uyuni_project.uyuni.apply_states:
uyuni_host: 192.168.1.1
uyuni_user: admin
uyuni_password: admin
name: server.localdomain.loc
states:
- backup-agent
- monitoring-agent
test_mode: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
State whether states were scheduled successfully Returned: success |