Sets Fully qualified domain name (FQDN)
Ansible version 2.0+
- 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 |
- hosts: mx.mydomain.com:mx
user: root
roles:
- { role: fqdn, fqdn: "mx.mydomain.com", hostname: "mx" }
MIT
Roman Gorodeckij (holms@holms.lt) John Brooker (jb-github@outlook.com)