GROG.fqdn
FQDN
This is a role for managing the fully qualified domain name (FQDN) or hostname of a system.
Requirements
- The machines must be prepared for using Ansible (they should have Python installed, etc.)
- You need root access, for example by using
become: yes
.
Role Variables
Variable | Description | Default Value |
---|---|---|
fqdn_full |
Fully qualified domain name | inventory_hostname |
fqdn_short |
Short hostname | inventory_hostname_short |
Dependencies
There are no dependencies.
Example Playbook
---
- hosts: test
roles:
- { role: GROG.fqdn, become: yes }
Contributing
We welcome any help, changes, or ideas! Check here for issues.
Author
This role was created by G. Roggemans.
License
MIT License