1
0
Fork 0

Add README for hostname role

This commit is contained in:
Daniele Tricoli 2020-11-15 18:14:06 +01:00
parent 18ff7dc695
commit 5760ab35c8

26
roles/hostname/README.md Normal file
View file

@ -0,0 +1,26 @@
# Hostname
Sets the hostname to a specified value and configure the 127.0.1.1 entry of
/etc/hosts to the same value. Optionally it will also other aliases inside
/etc/hosts.
## Role Variables
* `hostname_become` - Default: true. Enable/disable the Ansible become
functionality.
* `hostname_become_user` - Default: root. When using become functionality for
privilege escalation, this is the user with desired privileges you become.
* `hostname_aliases` - Default: []. Optional array of hostnames set into
/etc/hosts.
## Example Playbook
```yaml
- hosts: my-server
vars:
hostname: example.org
hostname_aliases:
- example
roles:
- eriol.kit.hostname
```