raspbernetes / k8s-cluster-installation

Bootstrap a k8s cluster with Ansible
https://raspbernetes.github.io/
Apache License 2.0
114 stars 32 forks source link

Set hostname in common role #113

Closed anthr76 closed 3 years ago

anthr76 commented 3 years ago

Description

This will work for debian flavored distros though unsure about Arch linux or other distros. A workaround is to use the command module and make this a 3 step process. Which loses impotence. For now we should keep it like this.

See this issue for more information

https://github.com/ansible/ansible/issues/42726

This will help ensure pre-ansible configuration is ensured throughout the whole process. Hostnames are important with k8s.

Checklist