1.1 KiB
1.1 KiB
Ansible Role: snort
This Ansible Role builds and installs the snort Typescript frontend assets. It is intended to be composed with a separate role for the web proxy configuration.
Tested on:
- Archlinux
- Ubuntu 22.04
Requirements
Install node anyway you like, or let this role do it for you:
requirements.yml
:
roles:
- src: https://github.com/bleetube/ansible-role-nodejs
name: bleetube.nodejs
It will set up node, npm, yarn, and n using the nodesource Debian repositories.
Dependencies
- nginx_conf (optional)
Role Variables
See the role defaults. For a working example, see this homelab stack.
Example Playbook
This role should not be run as root.
- hosts: snort
roles:
- role: nginxinc.nginx_core.nginx
become: yes
- role: bleetube.nodejs
become: yes
tags: nodejs
- role: bleetube.snort
tags: snort
tasks:
- import_tasks: nginx_conf.yml
become: yes