Skip to content

sparknsh/ansible-role-hostname

Repository files navigation

Ansible Role: Hostname

Version: 1.0.3

Development of this project is managed in a private repository then pushed out to GitLab and GitHub when we have a new version for you. If you have any issues please contact sparknsh

Role Variables

hostname__fqdn: "{{ inventory_fqdn }}"
hostname__hosts: []

Example

hostname__fqdn: "{{ inventory_fqdn }}"
hostname__hosts:
  myhost.com: 192.168.1.1
  yourhost.com: 192.168.1.2

Example Playbook

- hosts: all
  vars_files:
    - vars/main.yml
  roles:
     - { role: sparknsh.hostname }

License

MIT

Author Information

This role was created in 2020 by sparknsh at Rebel Media, Inc.