https://github.com/holms/ansible-fqdn
Sets Fully qualified domain name (FQDN)
https://github.com/holms/ansible-fqdn
Last synced: about 1 year ago
JSON representation
Sets Fully qualified domain name (FQDN)
- Host: GitHub
- URL: https://github.com/holms/ansible-fqdn
- Owner: holms
- License: mit
- Created: 2014-09-22T20:48:18.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-24T16:34:05.000Z (over 2 years ago)
- Last Synced: 2025-03-27T08:17:02.964Z (about 1 year ago)
- Language: PowerShell
- Size: 28.3 KB
- Stars: 99
- Watchers: 8
- Forks: 38
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fqdn [](https://travis-ci.org/holms/ansible-fqdn)
====
Sets Fully qualified domain name (FQDN)
Requirements
------------
Ansible version 2.0+
## Platforms
* Ubuntu
* Debian
* Centos
* Redhat
* Windows
Role Variables
--------------
| 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` |
Example
-------
```
- hosts: mx.mydomain.com:mx
user: root
roles:
- { role: fqdn, fqdn: "mx.mydomain.com", hostname: "mx" }
```
License
-------
MIT
Author Information
------------------
Roman Gorodeckij ()
John Brooker (jb-github@outlook.com)