ctorgalson.macos_hostname
Ansible Role for macOS Hostname
This is a simple Ansible role that sets the HostName, LocalHostName, and ComputerName on macOS.
Requirements
No special requirements needed.
Role Variables
| Variable Name | Default Value | Description |
|---|---|---|
mh_hostname |
'' |
The HostName to set. |
mh_localhostname |
MhLocalHostName |
The LocalHostName to set. |
mh_computername |
MhComputerName |
The ComputerName to set. |
- The terms
HostName,LocalHostName, andComputerNameare used with thescutilcommand on macOS. - Changing the
HostNamecould lead to unexpected results. For more info, check this Stack Overflow answer.
Example Playbook
- hosts: servers
roles:
- role: ansible-role-macos-hostname
License
GPLv3
Author
Christopher Torgalson
Informazioni sul progetto
A role to set HostName, LocalHostName, and ComputerName on macOS.
Installa
ansible-galaxy install ctorgalson.macos_hostnameLicenza
gpl-3.0
Download
21.5k
Proprietario
