Sets Fully qualified domain name (FQDN)
Ansible version 2.10+
- ArchLinux
- ArtixLinux
- Ubuntu
- Debian
- Centos
- Redhat
- Windows
Variable name | Variable value | Default |
---|---|---|
hostname | hostname (eg. vm1) | inventory_hostname_short |
fqdn | domain name (eg. vm1.test.com) | inventory_hostname |
ip_address | ip address (eg. 192.168.0.20) | ansible_default_ipv4.address |
- hosts: mx.mydomain.com:mx
user: root
roles:
- role: fqdn
vars:
fqdn: "mx.mydomain.com"
hostname: "mx"
MIT
Roman Gorodeckij ([email protected]) John Brooker ([email protected]) Bodo Schulz ([email protected])