A role for managing the fqdn/hostname.
- Hosts should be bootstrapped for ansible usage (have python,...)
- Root privileges, eg
become: yes
Variable | Description | Default value |
---|---|---|
fqdn_full |
Fully qualified domain name | inventory_hostname |
fqdn_short |
Short hostname | inventory_hostname_short |
None.
---
- hosts: test
roles:
- { role: GROG.fqdn, become: yes }
All assistance, changes or ideas welcome!
By G. Roggemans
MIT