ansible-role-snort/README.md

52 lines
1.1 KiB
Markdown
Raw Normal View History

2023-08-14 21:37:34 +00:00
# Ansible Role: snort
This Ansible Role builds and installs the [snort](https://github.com/v0l/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
2023-08-14 22:30:07 +00:00
Install node anyway you like, or let this role do it for you:
2023-08-14 21:37:34 +00:00
* [ansible-role-nodejs](https://github.com/bleetube/ansible-role-nodejs)
`requirements.yml`:
```yaml
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](docs/examples/nginx_conf.yml) (optional)
## Role Variables
See the role [defaults](defaults/main.yml). For a working example, see this [homelab stack](https://github.com/bleetube/satstack).
## Example Playbook
This role should not be run as root.
```yaml
- hosts: snort
roles:
- role: nginxinc.nginx_core.nginx
2023-08-14 22:30:07 +00:00
become: yes
- role: bleetube.nodejs
become: yes
tags: nodejs
2023-08-14 21:37:34 +00:00
- role: bleetube.snort
tags: snort
tasks:
- import_tasks: nginx_conf.yml
2023-08-14 22:30:07 +00:00
become: yes
2023-08-14 21:37:34 +00:00
```