cloudify.hostname
Ansibles - hostname 
Ansible role that sets the hostname and FQDN of the node.
Variables
This role fully depends on your ansible hosts inventory.
Add the hosts to your inventory with their FQDN (e.g. foo.bar.com), and the role will take care of setting your hostname accordingly (hostname: foo, FQDN: foo.bar.com).
If you just name it with the hostname in the inventory, it will similarly work (hostname set, but no FQDN attached to it).
Example
Your inventory file should look like this:
foo.bar.com ansible_ssh_host=xxx.xxx.xxx.xxx ansible_ssh_port=22
baz.bar.com ansible_ssh_host=xxx.xxx.xxx.xxx ansible_ssh_port=22
And the structure of the files in your host_vars folders should match accordingly:
- host_vars
|- foo.bar.com
|- baz.bar.com
License
Licensed under the MIT License. See the LICENSE file for details.
Feedback, bug-reports, requests, ...
Are welcome!
Install
ansible-galaxy install cloudify.hostnameLicense
mit
Downloads
86
Owner
Expect the unexpected
