missing blocklist directive; fix host list for lighthouse

This commit is contained in:
Louis Abel 2024-04-17 21:03:40 -07:00
parent 7cf58637a1
commit acb81e0219
Signed by: label
GPG Key ID: 2A6975660E424560
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,8 @@ pki:
disconnect_invalid: {{ nebula_pki_disconnect_invalid }}
{% endif %}
{% if nebula_pki_blocklist|length >= 1 %}
{{ nebula_pki_blocklist | to_nice_yaml(indent=2) | indent(width=2) }}
blocklist:
{{ nebula_pki_blocklist | to_nice_yaml(indent=2) | indent(width=4) }}
{% endif %}
# static host map
@ -41,7 +42,7 @@ lighthouse:
{% if not nebula_am_lighthouse %}
{% for host in ansible_play_hosts_all %}
{% if (hostvars[host]['nebula_am_lighthouse']|default(false)) and (hostvars[host]['nebula_is_member']|default(true)) %}
- {{ hostvars[host]['nebula_ip'].split('/')[0] }}
- '{{ hostvars[host]['nebula_ip'].split('/')[0] }}'
{% endif %}
{% endfor %}
{% endif %}