From 99dddff8625388641b9dd84b0e87a55f5c13bc82 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Wed, 24 Jan 2018 03:27:03 +0100 Subject: ffrl uplink and fastd split --- roles/setup_ffrl_tunnel/tasks/main.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 roles/setup_ffrl_tunnel/tasks/main.yml (limited to 'roles/setup_ffrl_tunnel/tasks/main.yml') diff --git a/roles/setup_ffrl_tunnel/tasks/main.yml b/roles/setup_ffrl_tunnel/tasks/main.yml new file mode 100644 index 0000000..e22787f --- /dev/null +++ b/roles/setup_ffrl_tunnel/tasks/main.yml @@ -0,0 +1,36 @@ +--- +- name: create netctl config + template: + src: netctl + dest: /etc/netctl/{{ item.name }} + with_items: "{{ ffrl_peers }}" + notify: reenable netctl + +- name: enable netctl config + command: netctl enable {{ item.name }} + args: + creates: /etc/systemd/system/netctl@{{ item.name }}.service + with_items: "{{ ffrl_peers }}" + +- name: start netctl config + systemd: + name: netctl@{{ item.name }}.service + state: started + with_items: "{{ ffrl_peers }}" + +- name: install bird + pacman: + name: bird + state: present + +- name: create bird config + template: + src: bird.conf + dest: /etc/bird.conf + notify: reload bird + +- name: start and enable bird + systemd: + name: bird.service + state: started + enabled: yes -- cgit v1.2.3-54-g00ecf