Giter Club home page Giter Club logo

ansible-role-ttrss's Introduction

ovv.ttrss

Build Status

Ansible role to install and configure TinyTinyRSS.

Requirements

A PHP, Nginx and PostgreSQL installation are required. We recommend using ovv.php7, pyslackers.nginx and pyslackers.postgres.

Installation

To install this roles clone it into your roles directory.

$ git clone https://github.com/ovv/ansible-role-ttrss.git ovv.ttrss

If your playbook already reside inside a git repository you can clone it by using git submodules.

$ git submodule add -b master https://github.com/ovv/ansible-role-ttrss.git ovv.ttrss

Role Variables

  • ttrss_user: TinyTinyRSS admin username.

  • ttrss_password: TinyTinyRSS admin password.

  • ttrss_salt: TinyTinyRSS admin password salt.

  • ttrss_db_user: Poostgres connection user.

  • ttrss_db_password: Postgres password.

  • ttrss_url: TinyTinyRSS url.

  • ttrss_crypt_key: 24 character crypt key.

  • ttrss_email: Outgoing email address.

  • ttrss_feed_update: Interval between feeds update in minutes (default to 5).

  • ttrss_git_url: TinyTinyRSS git repo (default to https://tt-rss.org/gitlab/fox/tt-rss.git).

  • ttrss_version: TinyTinyRSS git version (default to master).

  • ttrss_feedly: Install TinyTinyRSS feedly theme (default to True).

  • ttrss_shaarli: Install TinyTinyRSS shaarli plugin (default to False).

Other variables and their defaults are located in defaults.

Example Playbook

- hosts: localhost
  roles:
    - ovv.php7
    - pyslackers.postgres
    - ovv.ttrss
    - pyslackers.nginx
  vars:
    ttrss_user: admin
    ttrss_password: password
    ttrss_salt: randomsalt
    ttrss_db_user: ttrss
    ttrss_db_password: databasepassword
    ttrss_url: http://localhost
    ttrss_crypt_key: rand24characterscryptkey
    ttrss_email: [email protected]

    # ovv.php
    custom_php_packages:
      - php7.0-json
      - php7.0-xml
      - php7.0-gd
      - php7.0-pgsql

    php_pools:
      ttrss:
        socket: /var/run/php7.0-fpm-ttrss.sock
        user: ttrss
        createhome: yes
        home: /home/ttrss
        working_dir: /opt/ttrss

    # pyslackers.nginx
    nginx_sites:
      ttrss:
        directory: /opt/ttrss
        locations:
          - location: ~ \.php$
            custom: |
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
              fastcgi_pass unix:{{ php_pools['ttrss']['socket'] }};
              fastcgi_index index.php;
              include fastcgi.conf;
          - location: /
            custom: |
              try_files $uri $uri/ =404;

    # pyslackers.postgres
    postgres_users:
      ttrss:
        password: databasepassword

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.