bzcnsh.ansible_hostname
Role Name
ansible_role_hostname
update hostname and related files. on RedHat linux: /etc/hostname and /etc/hosts
Requirements
None
Role Variables
ansible_role_hostname_domain: the new domain name (optional)
default: keep existing domain name as found in /etc/hostname
ansible_role_hostname_hostname: the new hostname (optional)
default: keep existing hostname as found in /etc/hostname
Dependencies
None
Example Playbook
- hosts: localhost
roles:
- { role: bzcnsh.ansible_role_hostname, ansible_role_hostname_domain: newdomain.local, ansible_role_hostname_hostname: newhostname }
License
MIT
Author Information
Yimin Zheng. bzcnsh at yahoo.com
Install
ansible-galaxy install bzcnsh.ansible_hostname
License
Unknown
Downloads
47
Owner