Add a script to view netgraph's graphviz output.

This commit is contained in:
Tom Alexander 2022-12-02 19:21:13 -05:00
parent fc8694c886
commit 29e66c4e04
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/usr/bin/env zsh
imv =(sudo ngctl dot | dot -Tsvg)

View File

@ -90,6 +90,18 @@
state: absent
when: jail_list|community.general.json_query('[?enabled==`true`]')|length == 0
- name: Install scripts
when: install_graphics
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: netgraph_view
dest: /usr/local/bin/netgraph_view
- name: Install rc script
when: netgraph_config is defined
copy: