diff --git a/common/tasks/main.yml b/common/tasks/main.yml new file mode 100644 index 0000000..bb0d646 --- /dev/null +++ b/common/tasks/main.yml @@ -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 diff --git a/group_vars/all.sample b/group_vars/all.sample new file mode 100644 index 0000000..e2147e9 --- /dev/null +++ b/group_vars/all.sample @@ -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