pleroma/otp/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Feb 2024 15:40:36 -0600
changeset 229 7e3bf48e516a
parent 227 2e0366f2dcbe
child 238 bdbc88cb5078
permissions -rw-r--r--
Dendrite tweaks.

---

- name: add pleroma user
  become: yes
  user: name="pleroma" shell="/bin/false" home="/opt/pleroma" system="yes"

- name: apt install pleroma dependencies
  become: yes
  apt: name="{{item}}"
  loop:
    - "libmagic-dev"
    - "libtinfo5"

- name: install libssl1.1 deb
  become: yes
  apt: deb="http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_{{arch}}.deb"

- name: create pleroma config and data directories
  become: yes
  file:
    path: "{{item}}"
    state: "directory"
    mode: "0755"
  loop:
    - "{{pleroma_data_dir}}"
    - "/etc/pleroma"
    - "/opt/pleroma"

- name: configure pleroma systemd service
  become: yes
  copy:
    src: "[email protected]"
    dest: "/lib/systemd/system/[email protected]"
  notify: restart pleroma instance

- name: check if pleroma release exists
  stat: path="/tmp/release/"
  register: release

- include_tasks: install.yaml
  when: not release.stat.exists

- include_tasks: instance.yaml