Use hostname rather than fqdn

This commit is contained in:
Jake Howard
2021-03-04 16:06:43 +00:00
parent a4eb26b129
commit 2e05ed08fa
5 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
pki:
ca: /etc/nebula/ca.crt
cert: /etc/nebula/{{ ansible_fqdn }}.crt
key: /etc/nebula/{{ ansible_fqdn }}.key
cert: /etc/nebula/{{ ansible_hostname }}.crt
key: /etc/nebula/{{ ansible_hostname }}.key
static_host_map:
"{{ nebula_lighthouse_ip }}": ["{{ nebula_lighthouse_public_ip }}:{{ nebula_lighthouse_port }}"]
@ -31,7 +31,7 @@ tun:
mtu: 1300
routes:
unsafe_routes:
{% if ansible_fqdn != "ingress" %}
{% if ansible_hostname != "ingress" %}
- route: "{{ pve_hosts.internal_cidr }}"
via: "{{ nebula.clients.ingress.ip }}"
{% endif %}

View File

@ -36,8 +36,8 @@
dest: /etc/nebula/{{ item }}
mode: "0600"
loop:
- "{{ ansible_fqdn }}.key"
- "{{ ansible_fqdn }}.crt"
- "{{ ansible_hostname }}.key"
- "{{ ansible_hostname }}.crt"
become: true
notify: restart nebula
@ -63,4 +63,4 @@
jump: MASQUERADE
notify: persist iptables
become: true
when: ansible_fqdn == "ingress"
when: ansible_hostname == "ingress"