mrlesmithjr.change-hostname
Role Name
Changes the hostname on a node to match the inventory hostname.
Build Status
Requirements
None
Role Variables
---
# defaults file for ansible-change-hostname
# Defines if the node should reboot after changing the hostname
change_hostname_reboot: true
Dependencies
None
Example Playbook
- hosts: all
become: true
vars:
roles:
- role: ansible-change-hostname
tasks:
License
BSD
Author Information
Larry Smith Jr.
- @mrlesmithjr
- http://everythingshouldbevirtual.com
- mrlesmithjr [at] gmail.com
Install
ansible-galaxy install mrlesmithjr.change-hostnameLicense
Unknown
Downloads
732
Owner
Sharing practical insights on virtualization, cloud, automation, and DevOps to help others build, automate, and innovate with confidence.
