mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
🐛 Fix n8n permissions on data volume
This commit is contained in:
parent
9708c934f1
commit
6a285d7b99
3 changed files with 14 additions and 1 deletions
|
@ -15,7 +15,7 @@ n8n_basic_auth_password: "n8n_change_me"
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
n8n_container_name: "n8n"
|
n8n_container_name: "n8n"
|
||||||
n8n_image_name: "n8nio/n8n"
|
n8n_image_name: "docker.n8n.io/n8nio/n8n"
|
||||||
n8n_image_version: "latest"
|
n8n_image_version: "latest"
|
||||||
|
|
||||||
# specs
|
# specs
|
||||||
|
|
|
@ -1,6 +1,17 @@
|
||||||
---
|
---
|
||||||
|
platforms:
|
||||||
|
- name: instance
|
||||||
|
image: geerlingguy/docker-ubuntu2204-ansible:latest
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /tmp:/tmp:rw
|
||||||
|
privileged: true
|
||||||
|
pre_build_image: true
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
inventory:
|
inventory:
|
||||||
group_vars:
|
group_vars:
|
||||||
all:
|
all:
|
||||||
n8n_enabled: true
|
n8n_enabled: true
|
||||||
|
n8n_data_directory: "/tmp/n8n"
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: 1000
|
||||||
|
group: 1000
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ n8n_data_directory }}"
|
- "{{ n8n_data_directory }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue