markahesketh.hostname
Ansible Role: Hostname
Ansible role to set hostname and hosts using the playbook's inventory.
Installation
ansible-galaxy install markahesketh.hostname
Role Variables
This role does not use standard Ansible role variables.
The hostname will be set based upon the host's inventory within the playbook.
[production]
myinstance ansible_host=0.0.0.0
This instance would have it's hostname set to myinstance.
Dependencies
None.
Example Playbook
- hosts: web
roles:
- markahesketh.hostname
Testing
molecule test
License
This role is open-sourced software licensed under the MIT license.
Author
By Mark Hesketh, a web developer from Manchester, UK.
- Blog: markhesketh.co.uk
- Twitter: twitter.com/markahesketh
- GitHub: github.com/markahesketh
- Email: [email protected]
Install
ansible-galaxy install markahesketh.hostnameLicense
mit
Downloads
72
Owner
Software engineer building stuff with Ruby on Rails and React.
