summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2017-11-03 23:05:42 +0100
committerRomain Porte <microjoe@microjoe.org>2017-11-03 23:05:42 +0100
commitcce731907c1dfd81a0ef6c2a80eabb20a481caeb (patch)
treec5647ca66b523c601794067b5dc2bc61f3bac07a
parentf7b1945008ae46b647da093d6f7c25f0849a75e5 (diff)
downloadMicroJoe.ttrss-cce731907c1dfd81a0ef6c2a80eabb20a481caeb.tar.gz
MicroJoe.ttrss-cce731907c1dfd81a0ef6c2a80eabb20a481caeb.zip
New home directory, removed now useless permissions stuff
-rw-r--r--defaults/main.yml3
-rw-r--r--tasks/main.yml17
2 files changed, 4 insertions, 16 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index 20cfda5..2caa477 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -5,7 +5,8 @@ ttrss_repository: https://git.tt-rss.org/git/tt-rss.git
ttrss_base: /var/www/ttrss
ttrss_user: ttrss
-ttrss_group: www-data
+ttrss_group: ttrss
+ttrss_home: /var/lib/ttrss
ttrss_db_user: ttrss
ttrss_db_password: ttrss
diff --git a/tasks/main.yml b/tasks/main.yml
index d197923..9a97014 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -5,6 +5,8 @@
- name: Ensure user exists
user:
name: "{{ ttrss_user }}"
+ group: "{{ ttrss_group }}"
+ home: "{{ ttrss_home }}"
- name: Install dependencies
apt:
@@ -59,21 +61,6 @@
owner: ttrss
group: www-data
-- name: Set access for writeable directories
- file:
- path: "{{ ttrss_base }}/{{ item }}"
- state: directory
- mode: 0775
- owner: "{{ ttrss_user }}"
- group: "{{ ttrss_group }}"
- with_items:
- - cache/images
- - cache/upload
- - cache/export
- - cache/js
- - feed-icons
- - lock
-
- name: Install nginx configuration file {{ nginx_filename }}
template:
src: templates/nginx.j2