Playbook for hostname configuration
This commit is contained in:
parent
6c0189ac59
commit
c4fff9423b
1 changed files with 9 additions and 0 deletions
9
os_set_hostname.yml
Normal file
9
os_set_hostname.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Configure Node name
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
become: true
|
||||
tasks:
|
||||
- name: Set Hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue