1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #3012 from jvonau/chroot

ansible_is_chroot
This commit is contained in:
A Holt 2021-10-30 12:46:31 -04:00 committed by GitHub
commit 68c154d609
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@
- name: 'Set /etc/hostname by running: hostnamectl set-hostname "{{ iiab_hostname }}"' - name: 'Set /etc/hostname by running: hostnamectl set-hostname "{{ iiab_hostname }}"'
command: hostnamectl set-hostname "{{ iiab_hostname }}" command: hostnamectl set-hostname "{{ iiab_hostname }}"
when: not ansible_is_chroot
# 2021-08-31: Periods in /etc/hostname fail with some WiFi routers (#2904) # 2021-08-31: Periods in /etc/hostname fail with some WiFi routers (#2904)
# command: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}" # command: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"