markahesketh.hostname

Ansible Role: Hostname

Build Status

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

Requires Molecule and Docker.

License

This role is open-sourced software licensed under the MIT license.

Author

By Mark Hesketh, a web developer from Manchester, UK.

About

Set hostname and hosts using on the playbook's inventory.

Install
ansible-galaxy install markahesketh.hostname
GitHub repository
License
mit
Downloads
72
Owner
Software engineer building stuff with Ruby on Rails and React.