openbgpd: Initial version of role
This commit is contained in:
parent
142325765b
commit
2c9b877f9f
2 changed files with 20 additions and 0 deletions
5
roles/openbgpd/handlers/main.yml
Normal file
5
roles/openbgpd/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Restart bgpd
|
||||
ansible.builtin.service:
|
||||
name: bgpd
|
||||
state: restarted
|
15
roles/openbgpd/tasks/main.yml
Normal file
15
roles/openbgpd/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue