https://github.com/skrepr/ansible-role-hostname
This Ansible role is used for changing the hostname on your server.
https://github.com/skrepr/ansible-role-hostname
ansible ansible-role
Last synced: 2 months ago
JSON representation
This Ansible role is used for changing the hostname on your server.
- Host: GitHub
- URL: https://github.com/skrepr/ansible-role-hostname
- Owner: skrepr
- License: mit
- Created: 2021-09-09T05:41:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T07:00:22.000Z (over 4 years ago)
- Last Synced: 2025-01-08T04:39:23.948Z (over 1 year ago)
- Topics: ansible, ansible-role
- Homepage: https://galaxy.ansible.com/skrepr/hostname
- Size: 26.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Ansible Role Hostname
# About
This Ansible role is used for changing the hostname on your server.
It works by taking your `{{ inventory_hostname }}` and using it for changing the hostname.
[](https://galaxy.ansible.com/skrepr/hostname)
[](https://galaxy.ansible.com/skrepr/hostname)
[](https://galaxy.ansible.com/skrepr/hostname)
## Requirements
- SSH access to the server
## Role Variables
None.
## Dependencies
None.
## Example Playbook
```yaml
#!/usr/bin/env ansible-playbook
- hosts: production
become: true
roles:
- skrepr.hostname
```
## License
MIT / BSD
## Author Information
This role was created in 2021 by [Jeroen van der Meulen](https://github.com/jeroenvandermeulen), commisioned by [Skrepr](https://skrepr.com)