add common/tasks/main.yml and group_vars/all.sample

This commit is contained in:
staticsafe 2021-09-11 11:02:23 -04:00
parent 2343678ee2
commit 4d842efb2e
2 changed files with 17 additions and 0 deletions

12
common/tasks/main.yml Normal file
View File

@ -0,0 +1,12 @@
---
# This role installs some of nitter's dependencies and creates the user
# nitter will run under
- name: Install libsass and redis-server
apt: name={{ packages }} state=present update_cache=yes
vars:
packages:
- libsass-dev
- redis-server
- name: Add the user that nitter will run as
user: name={{ NITTER_USER }} shell=/bin/bash state=present

5
group_vars/all.sample Normal file
View File

@ -0,0 +1,5 @@
# Specify the user Nitter will run under (you can just use 'nitter' if unsure)
NITTER_USER: nitter
# Specify the domain Nitter will run under
NITTER_DOMAIN: nitter.example.com