Make Scriptorium configuration ownership configurable
This commit is contained in:
@@ -36,7 +36,15 @@
|
||||
loop:
|
||||
- "{{ scriptorium_source_dir | dirname }}"
|
||||
- "{{ scriptorium_binary_path | dirname }}"
|
||||
- "{{ scriptorium_config_path | dirname }}"
|
||||
|
||||
- name: Create the Scriptorium configuration directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ scriptorium_config_path | dirname }}"
|
||||
state: directory
|
||||
owner: "{{ scriptorium_config_owner }}"
|
||||
group: "{{ scriptorium_config_group }}"
|
||||
mode: "{{ scriptorium_config_directory_mode }}"
|
||||
|
||||
- name: Check out Scriptorium source
|
||||
become: true
|
||||
@@ -96,6 +104,6 @@
|
||||
ansible.builtin.template:
|
||||
src: config.yml.j2
|
||||
dest: "{{ scriptorium_config_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
owner: "{{ scriptorium_config_owner }}"
|
||||
group: "{{ scriptorium_config_group }}"
|
||||
mode: "{{ scriptorium_config_file_mode }}"
|
||||
|
||||
Reference in New Issue
Block a user