Hostname

This role was created to set the primary hostname over systemd

General

This role consists of one step:

  • set hostname over ansible and systemd

Dependencies

None

Role Variables

Name Type Default value Purpose Comment Role
hostname_conf Boolean false If set to true, the hostname role will be executed (Opt-in) - hostname
ansible_fqdn String ethOS comes from inventory hostname

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { hostname: hostname, crossplatformed }

License

BSD

Author Information

Maintainer: Niklaus Kappeler

Support-Contact: linux@ethz.ch