ansible/roles/ipv6_edge_router/tasks/main.yml

41 lines
683 B
YAML
Raw Normal View History

2020-09-28 18:15:03 +02:00
---
- name: install GPG
apt:
name: gnupg
- name: Add FRR repo key
apt_key:
data: "{{ lookup('file', 'frr-apt-key.asc') }}"
state: present
- name: Add FRR apt repository
apt_repository:
repo: deb https://deb.frrouting.org/frr buster frr-stable
state: present
notify: restart frr
- name: Install frr
apt:
name: frr
2020-11-04 19:31:50 +01:00
2020-09-28 18:15:03 +02:00
- name: setup frr daemons
template:
src: daemons.j2
dest: /etc/frr/daemons
2020-11-04 19:31:50 +01:00
mode: 0644
2020-09-28 18:15:03 +02:00
notify: restart frr
- name: setup frr.conf
template:
src: frr.conf.j2
dest: /etc/frr/frr.conf
2020-11-04 19:31:50 +01:00
mode: 0644
2020-09-28 18:15:03 +02:00
notify: restart frr
- name: enable+start frr
service:
name: frr
state: started
enabled: yes