buluma.hostname
Ansible Role hostname
This role is used to install necessary dependencies and set up the hostname on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here’s a simple example from molecule/default/converge.yml
. This example is tested every time you push, create a pull request, or release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.hostname
Before running this, your machine needs to be prepared, which can be done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
You can find more details and examples on how to use these roles.
Role Variables
Default variable values can be found in defaults/main.yml
:
---
# defaults file for hostname
# The hostname to set. Defaults to the inventory name.
hostname: "{{ inventory_hostname_short }}"
# Should the machine be restarted when the hostname changes?
hostname_reboot: true
Requirements
- Required pip packages are listed in requirements.txt.
State of Used Roles
The roles shown below are used to prepare the system. You are free to prepare your system differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap |
Context
This role works with many other compatible roles. For more information, check out the documentation for these roles.
Here’s a graphic showing related roles:
Compatibility
This role has been tested on the following container images:
container | tags |
---|---|
Alpine | all |
Amazon | Candidate |
EL | 8 |
Debian | all |
Fedora | all |
opensuse | all |
Ubuntu | all |
You need at least Ansible version 2.12. Tests have been conducted on:
- The previous version.
- The current version.
- The development version.
If you encounter any issues, please report them on GitHub.
Changelog
For the history of this role, see the Changelog.
License
The role is licensed under Apache-2.0.
Author Information
Created by Shadow Walker.
Install dependencies and configure the hostname on your system.
ansible-galaxy install buluma.hostname