Code Monkey home page Code Monkey logo

ansible-role-peertube's Introduction

Ansible Role: peertube

This Ansible Role deploys the Peertube Typescript code in a rootless container using Podman. It is intended to be composed with separate roles for the other Peertube requirements.

Thus, besides its own code (which this role deploys) it also needs:

  • postgres + 2 extensions
  • https certificates
  • web proxy
  • redis
  • mail server (optional)

Tested on:

  • Ubuntu 22.04

Requirements

Relevant parts of requirements.yml:

collections:
  - name: containers.podman
    src: https://github.com/containers/ansible-podman-collections
roles:
  - src: https://github.com/alvistack/ansible-role-podman
    name: alvistack.podman

Dependencies

Role Variables

See the role defaults. For a working example, see this homelab stack.

Example Playbook

- hosts: peertube
  roles:
    - role: nginxinc.nginx_core.nginx
      become: true
    - role: anxs.postgresql
      become: true
    - role: alvistack.podman
      become: true
    - role: bleetube.peertube
      tags: peertube
  tasks:
    - import_tasks: nginx_conf.yml
      become: true

The container administrator password grep password peertube.log

"The administrator username is root" and it's logged on first startup to {{ peertube_root_path }}/storage/logs/peertube.log. For example:

grep password /var/www/peertube/storage/logs/peertube.log

Systemd

systemctl --user status container-peertube.service

Upgrades

ansible-playbook playbooks/peertube.yml --tags peertube

Notes

The peertube 5.0.1 container would only read some config from production.yaml, and some config from environment variables. This is handled by the role, but for posterity:

  • postgres config must be in production.yaml
  • redis config must be in production.yaml
  • smtp config must be in the environment variables
  • the peertube secret must be in the environment variables

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.