Commit ae6b46ed authored by nanahira's avatar nanahira

Merge branch 'master' into babeld

parents 6f1611e4 e60b51e4
...@@ -97,6 +97,17 @@ ...@@ -97,6 +97,17 @@
with_items: '{{ connections }}' with_items: '{{ connections }}'
when: "not noUpdateLinks and (not onlyUpdateLink or item.name == onlyUpdateLink) and item.protocol != 'null'" when: "not noUpdateLinks and (not onlyUpdateLink or item.name == onlyUpdateLink) and item.protocol != 'null'"
# end # end
- name: disable bug self-link
become: true
ignore_errors: true
systemd:
name: 'wg-quick@{{item}}'
state: stopped
enabled: false
masked: true
with_items:
- mc-{{inventory_hostname_short}}
- mci{{inventory_hostname_short}}
- name: services conf - name: services conf
copy: copy:
content: '{{dockerServices | to_yaml}}' content: '{{dockerServices | to_yaml}}'
......
- hosts: wg - hosts: wg
remote_user: root remote_user: root
tasks: tasks:
- name: migrate - name: load vars
include_vars:
file: '../result/{{item}}.yaml'
with_items:
- global-vars
- vars-{{inventory_hostname_short}}
- name: post scripts
template:
src: scripts/{{item}}.sh.j2
dest: '{{ansible_user_dir}}/nextgen-network/scripts/{{item}}.sh'
mode: a+x
with_items:
- postup
- predown
- global-postup
- utility
- switch-rules-up
- switch-rules-down
- ocserv-postup
- ocserv-predown
- name: chnroute
become: true become: true
shell: | shell: |
ipset restore -f {{ansible_user_dir}}/nextgen-network/ipsets/chnrouter.ipset || true ipset restore -f {{ansible_user_dir}}/nextgen-network/ipsets/chnrouter.ipset || true
......
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