Adding variables for opting to build hosts file

This commit is contained in:
Matt Burchett
2021-10-16 03:51:26 +00:00
parent 82ec21904c
commit 24104f0480
2 changed files with 4 additions and 0 deletions

View File

@@ -10,11 +10,13 @@
path: /etc/hosts
line: "{{ nebula_internal_ip_addr }} {{ inventory_hostname }}.neb"
delegate_to: "{{ groups.nebula_lighthouse[0] }}"
when: nebula_lighthouse_build_hosts_file
- name: Ensure node has hosts file entry for lighthouse
lineinfile:
path: /etc/hosts
line: "{{ nebula_lighthouse_internal_ip_addr }} {{ nebula_lighthouse_hostname }}.neb"
when: nebula_node_lighthouse_in_hosts_file
- name: Read cert/key from lighthouse
slurp: