From f394fd81667a44e267e83d3c453101598a21c58c Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Mon, 26 Jul 2021 18:02:03 +0200 Subject: new group wg --- roles/configure_static_routes/tasks/main.yml | 3 +++ roles/configure_static_routes/tasks/wg_tasks.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 roles/configure_static_routes/tasks/wg_tasks.yml (limited to 'roles/configure_static_routes') diff --git a/roles/configure_static_routes/tasks/main.yml b/roles/configure_static_routes/tasks/main.yml index c98825f..b1d90b7 100644 --- a/roles/configure_static_routes/tasks/main.yml +++ b/roles/configure_static_routes/tasks/main.yml @@ -13,6 +13,9 @@ - include_tasks: fastd_tasks.yml when: "'fastd' in group_names" +- include_tasks: wg_tasks.yml + when: "'wg' in group_names" + - name: copy ffmyk iproute systemd service copy: src: ffmyk-iproute.service diff --git a/roles/configure_static_routes/tasks/wg_tasks.yml b/roles/configure_static_routes/tasks/wg_tasks.yml new file mode 100644 index 0000000..4cd1583 --- /dev/null +++ b/roles/configure_static_routes/tasks/wg_tasks.yml @@ -0,0 +1,14 @@ +--- +- name: copy site specific iproute up config script + template: + src: ffmyk-iproute-up.j2 + dest: /usr/local/bin/ffmyk-iproute{{ item.name }}-up.sh + mode: 0744 + with_items: "{{ sites }}" + +- name: copy site specific iproute down config script + template: + src: ffmyk-iproute-down.j2 + dest: /usr/local/bin/ffmyk-iproute{{ item.name }}-down.sh + mode: 0744 + with_items: "{{ sites }}" -- cgit v1.2.3-54-g00ecf