openbgpd: Initial version of role

This commit is contained in:
Timo Makinen 2023-04-29 14:46:51 +00:00
parent 142325765b
commit 2c9b877f9f
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
- name: Restart bgpd
ansible.builtin.service:
name: bgpd
state: restarted

View file

@ -0,0 +1,15 @@
---
- name: Copy config
ansible.builtin.copy:
dest: /etc/bgpd.conf
src: "{{ ansible_private }}/files/bgpd/bgpd.conf.{{ inventory_hostname }}"
mode: 0600
owner: root
group: "{{ ansible_wheel }}"
notify: Restart bgpd
- name: Enable service
ansible.builtin.service:
name: bgpd
state: started
enabled: true