ansible-role-pleroma/tasks/main.yml

15 lines
569 B
YAML
Raw Normal View History

2021-01-25 21:15:47 -06:00
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- name: set up system
block:
- name: install packages
apt: name=curl,python3-psycopg2,unzip,libmagic-dev,ncurses-bin
- name: assure pleroma uesr
user: name=pleroma system=yes home={{ pleroma_home }}
- name: assure operational directory
file: path={{ pleroma_home }} state=directory owner=pleroma group=pleroma mode="3775"
- name: assure systemd unit
template: src=pleroma.service dest=/etc/systemd/system/pleroma@.service
notify: "restart pleroma {{ pleroma_name }}"