add nitter-app/tasks/main.yml and nitter-app/tasks/buildnitter.sh

This commit is contained in:
staticsafe 2021-09-11 12:29:42 -04:00
parent f5ae1d3568
commit 71d44669bc
2 changed files with 28 additions and 0 deletions

21
nitter-app/tasks/main.yml Normal file
View File

@ -0,0 +1,21 @@
---
# Download Nitter application from Github
- name: Checkout nitter repo
ansible.builtin.git:
repo: 'https://github.com/zedeus/nitter'
dest: "/home/{{ NITTER_USER }}/nitter"
become: true
become_user: "{{ NITTER_USER }}"
- name: Copy nitter build script
ansible.builtin.template:
src: buildnitter.sh
dest: "/home/{{ NITTER_USER }}/buildnitter.sh"
become: true
become_user: "{{ NITTER_USER }}"
- name: Run nitter build script
ansible.builtin.shell: "/home/{{ NITTER_USER }}/buildnitter.sh"
args:
executable: /bin/bash
become: true
become_user: "{{ NITTER_USER }}"

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# This script runs the build process for nitter and its SCSS
cd /home/{{ NITTER_USER }}/nitter
nimble build -d:release
nimble scss
mkdir ./tmp