mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-18 00:46:47 +00:00
manage nmtrust excluded networks
This commit is contained in:
parent
b59921d502
commit
a99b15c4ce
3 changed files with 16 additions and 0 deletions
|
|
@ -59,6 +59,13 @@ network:
|
|||
- d2642f7e-9e58-4b00-82f8-26b4ef76a54e
|
||||
- f74f2bd5-8748-4e1e-98f9-dae2dd44b916
|
||||
- a04ea39b-eca8-39d0-9b4a-45badc25b359
|
||||
excluded_networks:
|
||||
# Docker
|
||||
- docker*
|
||||
- br-*
|
||||
# libvirt
|
||||
- virbr*
|
||||
- vnet*
|
||||
|
||||
editors:
|
||||
- gvim
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
src: trusted_networks.j2
|
||||
dest: /etc/nmtrust/trusted_networks
|
||||
|
||||
- name: Push excluded network list
|
||||
template:
|
||||
src: excluded_networks.j2
|
||||
dest: /etc/nmtrust/excluded_networks
|
||||
|
||||
- name: Verify trusted unit list exists
|
||||
copy:
|
||||
content: ""
|
||||
|
|
|
|||
4
roles/nmtrust/templates/excluded_networks.j2
Normal file
4
roles/nmtrust/templates/excluded_networks.j2
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
{% for network in network.excluded_networks %}
|
||||
{{ network }}
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue