Ansible Role cockpit

This role can either install or remove all cockpit packages from the system (for security reasons).

Tags

cockpit

  • Installs or removes cockpit packages.

  • Triggers: none.

cockpit:state

  • Manages the state of the systemd socket.

  • Triggers: none.

Optional Role Variables

cockpit__additional_packages

  • Additional cockpit packages to install, to extend the functionality of the web console.

  • Type: List of strings.

  • Default: unset

cockpit__socket_enabled

  • Enables or disables the cockpit.socket, analogous to systemctl enable/disable --now.

  • Type: Bool.

  • Default: true

cockpit__state

  • State of the cockpit packages. Possible Options: 'absent', 'present'.

  • Type: String.

  • Default: 'absent'

Example:

# optional
cockpit__additional_packages:
  - 'cockpit-machines' # for KVM administration
cockpit__socket_enabled: true
cockpit__state: 'present'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich