ryezone_labs.hosts

ryezone_labs.hosts

This manages the /etc/hosts file with the hostname you want.

Role Variables

Global Variables

  • ryezone_labs_top_level_domain (string)

    This defines the main domain for DNS and DHCP.

Role Variables

  • hosts_hostname (string)

    When you set this, it updates the /etc/hosts file and the hostname.

  • hosts_domain (string)

    This sets the domain part of the hostname. By default, it uses {{ryezone_labs_top_level_domain}}.

Example Playbook

---
- hosts: 127.0.0.1
  connection: local
  roles:
    - ryezone_labs.hosts
  vars:
    hosts_hostname: my-host
    hosts_domain: 'domain.local'

License

BSD

Informazioni sul progetto

Sets hosts information

Installa
ansible-galaxy install ryezone_labs.hosts
Licenza
Unknown
Download
184
Proprietario