add nitter-app/tasks/main.yml and nitter-app/tasks/buildnitter.sh
This commit is contained in:
parent
f5ae1d3568
commit
71d44669bc
|
@ -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 }}"
|
|
@ -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
|
Loading…
Reference in New Issue