Update to 2021-11-22 18:00

master
Daniel Berteaud 3 years ago
parent a817d48eed
commit 6679e56f78
  1. 3
      roles/n8n/defaults/main.yml
  2. 10
      roles/n8n/tasks/install.yml

@ -38,6 +38,9 @@ n8n_config_base:
n8n_config_extra: {}
n8n_config: "{{ n8n_config_base | combine(n8n_config_extra,recursive=True) }}"
# An optional list of extra module to install
n8n_extra_node_modules: []
# The URL which will be used to reach n8n.
# You'll likely have to change it, especially if n8n runs behind a reverse proxy
n8n_public_url: http://{{ inventory_hostname }}:{{ n8n_port }}/

@ -27,6 +27,16 @@
notify: restart n8n
tags: n8n
- name: Install extra NodeJS modules
npm:
name: "{{ item }}"
path: "{{ n8n_root_dir }}/app"
become_user: "{{ n8n_user }}"
notify: restart n8n
when: n8n_extra_node_modules | length > 0
loop: "{{ n8n_extra_node_modules }}"
tags: n8n
# Create the database
- import_tasks: ../includes/webapps_create_mysql_db.yml
vars:

Loading…
Cancel
Save