diff --git a/README.md b/README.md index 172456c..cfacd6a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ Tested on: ## Requirements +Install node anyway you like, or let this role do it for you: + * [ansible-role-nodejs](https://github.com/bleetube/ansible-role-nodejs) `requirements.yml`: @@ -37,10 +39,13 @@ This role should not be run as root. - hosts: snort roles: - role: nginxinc.nginx_core.nginx - become: true + become: yes + - role: bleetube.nodejs + become: yes + tags: nodejs - role: bleetube.snort tags: snort tasks: - import_tasks: nginx_conf.yml - become: true + become: yes ``` diff --git a/docs/examples/nginx.conf b/docs/examples/nginx.conf deleted file mode 100644 index dcd7da3..0000000 --- a/docs/examples/nginx.conf +++ /dev/null @@ -1 +0,0 @@ ---- # WIP \ No newline at end of file diff --git a/docs/examples/nginx_conf.yml b/docs/examples/nginx_conf.yml new file mode 100644 index 0000000..80cc97d --- /dev/null +++ b/docs/examples/nginx_conf.yml @@ -0,0 +1,31 @@ +--- +# https://github.com/v0l/snort/blob/main/docker/nginx.conf +- name: snort | Configure nginx + ansible.builtin.import_role: + name: nginx_core.nginx_config + vars: + nginx_config_http_template_enable: true + nginx_config_http_template: + - template_file: http/default.conf.j2 + deployment_location: "/etc/nginx/conf.d/snort_{{ nginx_snort_domain|default(inventory_hostname) }}.conf" + backup: false + config: + servers: + - core: + listen: + - address: "{{ default_interface_ipv4_address|default(ansible_default_ipv4.address) }}:{{ nginx_snort_port|default(4451) }} ssl" + include: + - "/etc/nginx/acme_{{ nginx_snort_domain|default(inventory_hostname) }}.conf" + index: index.html + root: "{{ snort_root_path|default('/var/www/snort') }}" + log: + access: + - off + http2: + enabled: yes + locations: + - location: / + core: + try_files: + files: $uri $uri/ /index.html + code: =404 \ No newline at end of file diff --git a/tasks/install.yml b/tasks/install.yml index 365d828..d968c2e 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -18,6 +18,7 @@ remote_src: yes become: yes loop: - - packages/app/build/ - packages/app/public/ + - packages/app/build/ + changed_when: false \ No newline at end of file