Skip to content

provisioning_hostname

The cake function provisioning_hostname executes the Ansible role-hostname, which sets the servers hostname in /etc/hosts and /etc/hostname.

Information

Key Value
Playbook path plays/provisioning/hostname.yml
Role https://git.blunix.com/ansible-roles/role-hostname
Tags https://git.blunix.com/ansible-roles/role-hostname/-/tags
Defaults https://git.blunix.com/ansible-roles/role-hostname/-/blob/master/defaults/main.yml
Config files Description
/etc/hostname Defines hostname of the server
/etc/hosts Defines FQDNs of the server

Example

cake -f provisioning_hostname -i pub

No manual inventory/ modifications required.