fix: hostname method
This commit is contained in:
parent
1d5b447cd6
commit
0bfb061c90
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
- name: "set hostname"
|
- name: "set hostname"
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
name: "{{ set_hostname | default(inventory_hostname_short) }}"
|
name: "{{ set_hostname | default(inventory_hostname_short) }}"
|
||||||
use: "{{ hostname_use_method | default(hostname_method_map[ansible_os_family]) }}"
|
use: "{{ hostname_use_method }}"
|
||||||
tags: "hostname"
|
tags: "hostname"
|
||||||
|
|
||||||
# manage /etc/hosts
|
# manage /etc/hosts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue