community.general.cobbler_sync module – Sync Cobbler

Note

This module is part of the community.general collection (version 8.6.7).

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_sync.

Synopsis

  • Sync Cobbler to commit changes.

Aliases: remote_management.cobbler.cobbler_sync

Parameters

Parameter

Comments

host

string

The name or IP address of the Cobbler system.

Default: "127.0.0.1"

password

string

The password to log in to Cobbler.

port

integer

Port number to be used for REST connection.

The default value depends on parameter use_ssl.

use_ssl

boolean

If false, an HTTP connection will be used instead of the default HTTPS connection.

Choices:

  • false

  • true ← (default)

username

string

The username to log in to Cobbler.

Default: "cobbler"

validate_certs

boolean

If false, SSL certificates will not be validated.

This should only set to false when used on personally controlled sites using self-signed certificates.

Choices:

  • false

  • true ← (default)

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode.

Notes

Note

Examples

- name: Commit Cobbler changes
  community.general.cobbler_sync:
    host: cobbler01
    username: cobbler
    password: MySuperSecureP4sswOrd
  run_once: true
  delegate_to: localhost

Authors

  • Dag Wieers (@dagwieers)