Introduce boolean var 'debug_fastd' and tag debug
If debug_fastd to 'True' log level is set to debug on all fastd instances. Run the playbook with tag 'debug' to invoke only tasks changing debug settings.
This commit is contained in:
parent
55591b3146
commit
8f8184f4cf
5 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
debug_fastd: False
|
||||
|
||||
as_private_mwu: 65037
|
||||
as_public_ffrl: 201701
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/fastd.conf"
|
||||
notify: restart fastd backbone instances
|
||||
loop: "{{ meshes | subelements('fastd.backbone.instances') }}"
|
||||
tags: debug
|
||||
|
||||
- name: write fastd backbone secret
|
||||
template:
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
{% if debug_fastd %}
|
||||
log level debug;
|
||||
{% else %}
|
||||
log level warn;
|
||||
{% endif %}
|
||||
hide ip addresses yes;
|
||||
hide mac addresses yes;
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
dest: "/etc/fastd/{{ item.0.id }}vpn-{{ item.1.mtu }}/fastd.conf"
|
||||
notify: restart fastd mesh instances
|
||||
loop: "{{ meshes | subelements('fastd.nodes.instances') }}"
|
||||
tags: debug
|
||||
|
||||
- name: write fastd mesh secret
|
||||
template:
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
{% if debug_fastd %}
|
||||
log level debug;
|
||||
{% else %}
|
||||
log level warn;
|
||||
{% endif %}
|
||||
hide ip addresses yes;
|
||||
hide mac addresses yes;
|
||||
|
||||
|
|
Loading…
Reference in a new issue