You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# use: redhat # required on Alpine Linux: https://github.com/ansible/ansible/issues/77363
# only for Ansible versions < 2.12.5 tho
tags:
- hostname
when: ansible_os_family != 'Alpine'
The workaround is to enable the "redhat" methodology on Alpine Linux, which I'm currently doing manually.
The bug has already been fixed in the latest Ansible, but I'll leave this open until we either automate the workaround or we have the latest Ansible on all relevant systems.
Welp, I'm using ansible [core 2.12.5] on macOS and the bug doesn't seem to actually be fixed, and my workaround broke. Time to file another bug I guess?
When I log in to Alpine Linux after running all roles, hostname is still localhost.
sudo hostname dragon
only works temporarily.https://www.cyberciti.biz/faq/alpine-linux-change-hostname-computer-name/ suggests editing
/etc/hostname
to make it persist between reboots.After doing this, you would have to run the motd and test page plays again to make them reflect the correct hostname.
The text was updated successfully, but these errors were encountered: