summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml23
1 files changed, 15 insertions, 8 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 9a97014..11db67c 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,6 +1,9 @@
---
# tasks file for MicroJoe.ttrss
+- name: Ensure "{{ ttrss_group }}" group exists
+ group:
+ name: "{{ ttrss_group }}"
- name: Ensure user exists
user:
@@ -10,13 +13,16 @@
- name: Install dependencies
apt:
- name: "{{ item }}"
+ name:
+ - php-curl
+ - php-fpm
+ - php-intl
+ - php-mbstring
+ - php-pgsql
+ - php-xml
+ - postgresql
+ - python-psycopg2
state: present
- with_items:
- - python-psycopg2
- - postgresql
- - php-pgsql
- - php-curl
- name: Create ttrss base directory
file:
@@ -31,6 +37,7 @@
git:
repo: "{{ ttrss_repository }}"
dest: "{{ ttrss_base }}"
+ version: "{{ ttrss_version }}"
register: git_updated
# PostgreSQL commands
@@ -78,11 +85,11 @@
- name: Install php-fpm pool configuration file
template:
src: templates/php-fpm.conf
- dest: /etc/php/7.0/fpm/pool.d/ttrss.conf
+ dest: /etc/php/7.3/fpm/pool.d/ttrss.conf
notify: restart php-fpm
- name: Verify php-fpm configuration
- command: php-fpm7.0 --test
+ command: php-fpm7.3 --test
changed_when: false
# Install update feed systemd service