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
, andComputerName
are used with thescutil
command on macOS. - Changing the
HostName
could 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_hostname
Licenza
gpl-3.0
Download
15.1k
Proprietario