mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
feat(hostname): support on-demand hostname setting on Chimera Linux
This commit is contained in:
parent
e9e6fec5da
commit
0ae280bb8c
1 changed files with 6 additions and 0 deletions
|
@ -3,3 +3,9 @@
|
|||
cmd: "hostnamectl set-hostname {{ hostname_fqdn }}"
|
||||
when: ansible_os_family in ["Debian"]
|
||||
listen: "set-hostname"
|
||||
|
||||
- name: "Set hostname via hostname to avoid a reboot"
|
||||
command:
|
||||
cmd: "hostname {{ hostname_fqdn }}"
|
||||
when: ansible_os_family in ["Chimera"]
|
||||
listen: "set-hostname"
|
||||
|
|
Loading…
Reference in a new issue