1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #2973 from holta/2904

Try box.lan -> box in /etc/hostname, for #2904
This commit is contained in:
A Holt 2021-09-01 08:48:21 -04:00 committed by GitHub
commit dd8d174047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,10 @@
state: present
when: cloudcfg_test.stat.exists
- name: 'Turn the crank for systemd: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"'
command: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"
- name: 'Set /etc/hostname by running: hostnamectl set-hostname "{{ iiab_hostname }}"'
command: hostnamectl set-hostname "{{ iiab_hostname }}"
# 2021-08-31: Periods in /etc/hostname fail with some WiFi routers (#2904)
# command: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"
#- name: Install /etc/sysconfig/network from template (redhat)
# template: