Go to file
2023-08-14 15:30:07 -07:00
defaults Initialize repository for Snort role. 2023-08-14 14:37:34 -07:00
docs/examples First test deployments completed. 2023-08-14 15:30:07 -07:00
tasks First test deployments completed. 2023-08-14 15:30:07 -07:00
tests Initialize repository for Snort role. 2023-08-14 14:37:34 -07:00
.gitignore Initialize repository for Snort role. 2023-08-14 14:37:34 -07:00
LICENSE Initialize repository for Snort role. 2023-08-14 14:37:34 -07:00
README.md First test deployments completed. 2023-08-14 15:30:07 -07:00

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

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