summaryrefslogtreecommitdiff
path: root/roles/setup_ffrl_tunnel/tasks/main.yml
blob: e22787f638ebfa45b37ae30f84d2e17cddedabf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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