Add a script to view netgraph's graphviz output.
This commit is contained in:
parent
fc8694c886
commit
29e66c4e04
2
ansible/roles/jail/files/netgraph_view
Normal file
2
ansible/roles/jail/files/netgraph_view
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env zsh
|
||||
imv =(sudo ngctl dot | dot -Tsvg)
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user