Skip to content

wftech/ansible-role-hostname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

hostname role

This role sets the hostname of the host to the value specified in the hostname variable.

Variables

Variable Description
hostname_value The hostname to set, default is inventory_hostname
hostname_update Whether to update the hostname. Default is true.

Usage

- name: Common setup
  hosts: all

  vars:
      hostname_value: "{{ inventory_hostname }}"
      hostname_update: true
    
  roles:
    - role: wftech.hostname

License

CC0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published