community.general.cobbler – Cobbler inventory source
Note
This plugin is part of the community.general collection (version 3.8.3).
You might already have this collection installed if you are using the ansible
package.
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 community.general
.
To use it in a playbook, specify: community.general.cobbler
.
New in version 1.0.0: of community.general
Synopsis
Get inventory hosts from the cobbler service.
Uses a configuration file as an inventory source, it must end in
.cobbler.yml
or.cobbler.yaml
and has aplugin: cobbler
entry.
Parameters
Parameter |
Comments |
---|---|
Toggle to enable/disable the caching of the inventory’s source data, requires a cache plugin setup to work. Choices:
Configuration:
|
|
Cache connection data or path, read cache plugin documentation for specifics. Configuration:
|
|
Fallback to cached results if connection to cobbler fails Choices:
|
|
Cache plugin to use for the inventory’s source data. Default: “memory” Configuration:
|
|
Prefix to use for cache plugin files/tables Default: “ansible_inventory_” Configuration:
|
|
Cache duration in seconds Default: 3600 Configuration:
|
|
Profiles to exclude from inventory Default: [] |
|
Group to place all hosts into Default: “cobbler” |
|
Keys to group hosts by Default: [“mgmt_classes”, “owners”, “status”] |
|
Prefix to apply to cobbler groups Default: “cobbler_” |
|
Cobbler authentication password Configuration:
|
|
The name of this plugin, it should always be set to Choices:
|
|
URL to cobbler. Default: “http://cobbler/cobbler_api” Configuration:
|
|
Cobbler authentication user. Configuration:
|
|
Toggle, if Choices:
|