Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/holms/ansible-fqdn

Sets Fully qualified domain name (FQDN)
https://github.com/holms/ansible-fqdn

Last synced: about 1 month ago
JSON representation

Sets Fully qualified domain name (FQDN)

Awesome Lists containing this project

README

        

fqdn [![Build Status](https://travis-ci.org/holms/ansible-fqdn.svg?branch=master)](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 ([email protected])