arensb.truenas.hostname module – Set the hostname.

Note

This module is part of the arensb.truenas collection (version 1.11.4).

To install it, use: ansible-galaxy collection install arensb.truenas.

To use it in a playbook, specify: arensb.truenas.hostname.

New in arensb.truenas 0.1.0

Synopsis

  • Set the hostname, as part of the host’s network configuration.

  • Does not set the FQDN.

Parameters

Parameter

Comments

name

string / required

Hostname to set (not FQDN).

Examples

- name: Set hostname
  arensb.truenas.hostname:
    name: my-little-host

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

msg

string

Status message, if warranted.

Returned: In some cases