ansible-docker-frr/tasks/main.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

2020-07-30 08:06:21 +00:00
- name: Configure 99_frr_defaults.conf
action: template src=templates/99frr_defaults.conf.j2 dest=/etc/sysctl.d/99frr_defaults.conf backup=yes
notify:
- reload 99frr_defaults
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Copy dockerfrr.sh shortcut script"
copy:
src: files/dockerfrr.sh
dest: /usr/sbin/dockerfrr.sh
mode: "+x"
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Configure /etc/frr"
file:
path: "/etc/frr/"
state: directory
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Copy daemons file"
copy:
src: daemons
dest: "/etc/frr/daemons"
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Copy bgpd.conf file"
copy:
src: bgpd.conf
dest: "/etc/frr/bgpd.conf"
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Copy bfdd.conf file"
copy:
2020-11-20 13:15:20 +00:00
src: bfdd.conf
2020-07-30 08:06:21 +00:00
dest: "/etc/frr/bfdd.conf"
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Configure frr.conf"
action: template src=templates/frr.conf.j2 dest=/etc/frr/frr.conf backup=yes
notify:
- restart frr-docker
when: ignore_frrconf is not defined
tags: frr-docker,frrconf
2020-11-20 13:15:20 +00:00
2020-07-30 08:06:21 +00:00
- name: "Configure frr-docker.service"
action: template src=templates/frr-docker.service.j2 dest=/etc/systemd/system/frr-docker.service backup=yes
notify:
- restart frr-docker
2020-11-20 13:15:20 +00:00
tags: frr-docker
2020-07-30 08:06:21 +00:00
- name: "Reload systemctl then enable & start frr-docker service"
systemd:
state: started
enabled: True
daemon_reload: yes
name: frr-docker.service
tags: frr-docker