#!/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 }}"