Simple host names in etc/hosts which arent used just yet
This commit is contained in:
parent
cfb7114597
commit
715ac65831
@ -5,3 +5,11 @@
|
|||||||
- name: Install K3S
|
- name: Install K3S
|
||||||
become: yes
|
become: yes
|
||||||
import_tasks: tasks/install-k3s.yml
|
import_tasks: tasks/install-k3s.yml
|
||||||
|
tags:
|
||||||
|
- bare-setup
|
||||||
|
- name: Ensure the service DNS names are in /etc/hosts
|
||||||
|
become: yes
|
||||||
|
import_tasks: tasks/setup-etc-hosts.yml
|
||||||
|
tags:
|
||||||
|
- dns
|
||||||
|
|
||||||
|
9
lab/tasks/setup-etc-hosts.yml
Normal file
9
lab/tasks/setup-etc-hosts.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Allows the host to resolve names that we use in cluster
|
||||||
|
- name: Ensure host can resolve its own service names
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
state: present
|
||||||
|
line: "192.168.1.100 {{ item }}"
|
||||||
|
loop:
|
||||||
|
- files.cluster.local
|
||||||
|
- nginx.cluster.local
|
Loading…
Reference in New Issue
Block a user