Initial commit

This commit is contained in:
Julian Rother 2025-02-12 19:28:00 +01:00
commit f381aedff5
Signed by: julian
GPG key ID: C19B924C0CD13341
4 changed files with 83 additions and 0 deletions

31
tasks/main.yml Normal file
View file

@ -0,0 +1,31 @@
- name: install dependencies
apt:
pkg:
- python3-bottle
- name: Copy netbox webhook handler script
notify: restart netbox-webhook-handler
copy:
content: '{{ netbox_webhook_handler_script }}'
dest: /etc/netbox_webhook_handler.sh
owner: root
group: root
mode: 0750
- name: Copy netbox-webhook-handler
notify: restart netbox-webhook-handler
copy:
src: netbox-webhook-handler
dest: /usr/local/sbin/netbox-webhook-handler
owner: root
group: root
mode: 0755
- name: Copy systemd service file
notify: restart netbox-webhook-handler
copy:
src: netbox-webhook-handler.service
dest: /etc/systemd/system
owner: root
group: root
mode: 0644