diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-07-03 09:46:42 +0200 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-07-03 09:46:42 +0200 |
commit | d82f8524972086862f64750f325ba067ea993d86 (patch) | |
tree | aa7634db168da40d108e43c7c30fbce299bdc7ab /roles/configure_static_routes/tasks/main.yml | |
parent | 90a8a597eaa3a008eac946460b5c621eafa8ec62 (diff) |
fastd working
Diffstat (limited to 'roles/configure_static_routes/tasks/main.yml')
-rw-r--r-- | roles/configure_static_routes/tasks/main.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/configure_static_routes/tasks/main.yml b/roles/configure_static_routes/tasks/main.yml new file mode 100644 index 0000000..e89d845 --- /dev/null +++ b/roles/configure_static_routes/tasks/main.yml @@ -0,0 +1,38 @@ +--- +- name: name ffmyk routing table + lineinfile: + path: /etc/iproute2/rt_tables + line: 42 ffmyk + +- 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 }}" + +- name: copy ffmyk iproute systemd service + copy: + src: ffmyk-iproute.service + dest: /etc/systemd/system/ffmyk-iproute.service + mode: 0444 + +- name: start and enable ffmyk iproute service + systemd: + name: ffmyk-iproute.service + daemon_reload: yes + enabled: yes + state: started |