Commit c5607d68 authored by nanahira's avatar nanahira

production config

parent 1d4a793b
......@@ -18,18 +18,18 @@
dest: '/etc/wireguard/{{item}}.ipset'
with_items: '{{route_list_names}}'
# 为了提高测试时候的性能,不改动wg的时候注释掉这段
#- name: 'clean up null connections first'
# include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
# vars:
# conn: '{{item}}'
# with_items: '{{ connections }}'
# when: "item.protocol == 'null'"
# - name: 'loop through list from a variable'
# include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
# vars:
# conn: '{{item}}'
# with_items: '{{ connections }}'
# when: "item.protocol != 'null'"
- name: 'clean up null connections first'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
vars:
conn: '{{item}}'
with_items: '{{ connections }}'
when: "item.protocol == 'null'"
- name: 'loop through list from a variable'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
vars:
conn: '{{item}}'
with_items: '{{ connections }}'
when: "item.protocol != 'null'"
- name: 'frps'
include_tasks: 'protocols/wgfrp/frps.yaml'
when: 'frps_needed is defined'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment