diff --git a/CHANGELOG.md b/CHANGELOG.md index d58532af..290ae8b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ The **patch** part changes incrementally at each release. ### Added +* tomcat: root directory owner/group are configurable + ### Changed ### Fixed diff --git a/tomcat/defaults/main.yml b/tomcat/defaults/main.yml index e555e2cd..03302455 100644 --- a/tomcat/defaults/main.yml +++ b/tomcat/defaults/main.yml @@ -1,2 +1,5 @@ --- tomcat_instance_root: '/srv/tomcat' + +tomcat_root_dir_owner: root +tomcat_root_dir_group: root diff --git a/tomcat/tasks/packages.yml b/tomcat/tasks/packages.yml index 1d26f176..900dffd0 100644 --- a/tomcat/tasks/packages.yml +++ b/tomcat/tasks/packages.yml @@ -33,8 +33,8 @@ file: path: "{{ tomcat_instance_root }}" state: directory - owner: 'root' - group: 'root' + owner: "{{ tomcat_root_dir_owner | default('root') }}" + group: "{{ tomcat_root_dir_group | default('root') }}" mode: "0755" - name: Copy systemd unit