23 lines
673 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Hostname
This Ansible role ensures that the target hosts system hostname is set to the inventory hostname.
## Description
- Uses the built-in `hostname` module to apply the `inventory_hostname` value
- Idempotent: only changes the system name if it differs
- No external dependencies
## Overview
1. **Task**
- `set hostname to {{ inventory_hostname }}`
Applies the desired hostname.
2. **Module**
- Leverages Ansibles [`hostname`](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/hostname_module.html) module.
## Features
* Simple and lightweight
* Automatically adapts to your inventory names
* Safe to run repeatedly