diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-01-24 03:27:03 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-01-24 03:27:03 +0100 |
commit | 99dddff8625388641b9dd84b0e87a55f5c13bc82 (patch) | |
tree | eb57e8113d70ed94f1ef6bc6575e3c62361259b6 /roles/configure_static_routes/tasks | |
parent | d2270e2e5045fa1999e8712394e06c1ff27e6ab3 (diff) |
ffrl uplink and fastd split
Diffstat (limited to 'roles/configure_static_routes/tasks')
-rw-r--r-- | roles/configure_static_routes/tasks/fastd_tasks.yml | 14 | ||||
-rw-r--r-- | roles/configure_static_routes/tasks/main.yml | 21 |
2 files changed, 22 insertions, 13 deletions
diff --git a/roles/configure_static_routes/tasks/fastd_tasks.yml b/roles/configure_static_routes/tasks/fastd_tasks.yml new file mode 100644 index 0000000..4cd1583 --- /dev/null +++ b/roles/configure_static_routes/tasks/fastd_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 }}" diff --git a/roles/configure_static_routes/tasks/main.yml b/roles/configure_static_routes/tasks/main.yml index e89d845..e37b598 100644 --- a/roles/configure_static_routes/tasks/main.yml +++ b/roles/configure_static_routes/tasks/main.yml @@ -4,25 +4,20 @@ path: /etc/iproute2/rt_tables line: 42 ffmyk +- name: name ffrl routing table + lineinfile: + path: /etc/iproute2/rt_tables + line: 47 ffrl + when: "'ffrl_uplink' in group_names" + - name: copy ffmyk iproute config script copy: src: ffmyk-iproute.sh dest: /usr/local/bin/ffmyk-iproute.sh mode: 0744 -- 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 }}" +- include_tasks: fastd_tasks.yml + when: "'fastd' in group_names" - name: copy ffmyk iproute systemd service copy: |