This commit is contained in:
parent
050205e95c
commit
4870960b45
6 changed files with 19 additions and 11 deletions
|
@ -19,12 +19,12 @@
|
|||
- name: Ensure directories are present
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
owner: "thelounge"
|
||||
group: "thelounge"
|
||||
owner: "{{ chat_user }}"
|
||||
group: "{{ chat_group }}"
|
||||
state: "{{ item.state | default('directory') }}"
|
||||
mode: "{{ item.mode | default('0770') }}"
|
||||
with_items:
|
||||
- { path: "/etc/thelounge" }
|
||||
- { path: "{{ chat_configdir }}" }
|
||||
- { path: "/var/local/thelounge/users" }
|
||||
- { path: "/var/local/thelounge/storage" }
|
||||
notify:
|
||||
|
@ -34,8 +34,8 @@
|
|||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: "{{ item.owner | default( 'thelounge' ) }}"
|
||||
group: "{{ item.group | default( 'thelounge' ) }}"
|
||||
owner: "{{ item.owner | default( chat_user ) }}"
|
||||
group: "{{ item.group | default( chat_group ) }}"
|
||||
mode: "{{ item.mode | default('0640') }}"
|
||||
with_items:
|
||||
- { src: "nodesource.list", dest: "/etc/apt/sources.list.d/nodesource.list", owner: root, group: root }
|
||||
|
@ -101,8 +101,8 @@
|
|||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: "{{ item.owner | default( 'thelounge' ) }}"
|
||||
group: "{{ item.group | default( 'thelounge' ) }}"
|
||||
owner: "{{ item.owner | default( chat_user ) }}"
|
||||
group: "{{ item.group | default( chat_group ) }}"
|
||||
mode: "{{ item.mode | default('0640') }}"
|
||||
validate: "{{ item.validate | default([]) }}"
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue