-
Notifications
You must be signed in to change notification settings - Fork 0
/
feral-setup.yml
129 lines (113 loc) · 2.84 KB
/
feral-setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
- name: Setup Feral Seedbox
hosts: "{{ feral_server }}"
remote_user: "{{ feral_username }}"
vars:
# base path to install to
install_path: ~/
tasks:
# setup
- name: Creating binary directory
file: path="{{ install_path }}/bin" state=directory
tags:
- setup
# restart-script
- name: Getting Feral restart script
get_url:
url: https://git.io/5Uw8Gw
dest: "{{ install_path }}/bin/restart"
mode: 0700
tags:
- restart-script
# rclone
- name: Getting rclone
unarchive:
src: https://downloads.rclone.org/rclone-current-linux-amd64.zip
remote_src: yes
dest: "{{ install_path }}"
mode: 0700
tags:
- rclone
- name: Finding rclone path
find:
paths: "{{ install_path }}"
patterns: "rclone-*-linux-amd64"
file_type: directory
register: files_matched
tags:
- rclone
- name: Installing rclone from {{ files_matched.files[0].path }}
copy:
src: "{{ files_matched.files[0].path }}/rclone"
remote_src: yes
dest: "{{ install_path }}/bin"
mode: 0700
tags:
- rclone
- name: Removing {{ files_matched.files[0].path }}
file:
state: absent
path: "{{ files_matched.files[0].path }}"
tags:
- rclone
# ffmpeg
- name: Getting ffmpeg
unarchive:
src: https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
remote_src: yes
dest: "{{ install_path }}"
tags:
- ffmpeg
- name: Finding ffmpeg path
find:
paths: "{{ install_path }}"
patterns: "ffmpeg-*-64bit-static"
file_type: directory
register: files_matched
tags:
- ffmpeg
- name: Installing ffmpeg from {{ files_matched.files[0].path }}
copy:
src: "{{ files_matched.files[0].path }}/{{ item }}"
remote_src: yes
dest: "{{ install_path }}/bin"
mode: 0700
with_items:
- "ffmpeg"
- "ffprobe"
- "ffmpeg-10bit"
- "qt-faststart"
tags:
- ffmpeg
- name: Removing {{ files_matched.files[0].path }}
file:
state: absent
path: "{{ files_matched.files[0].path }}"
tags:
- ffmpeg
# speedtest-cli
- name: Installing speedtest-cli
command: pip install speedtest-cli
tags:
- speedtest-cli
# nginx
- name: Replacing Apache with NGINX
file: path="{{ install_path }}/.nginx" state=directory
tags:
- nginx
# h5ai
- shell: hostname -f
register: hostname
tags:
- h5ai
- name: Creating h5ai directory
file: path="~/www/{{ ansible_env.USER }}.{{ hostname.stdout }}/public_html/_h5ai" state=directory
tags:
- h5ai
- name: Getting h5ai
unarchive:
src: http://git.io/vEMGv
remote_src: yes
dest: "~/www/{{ ansible_env.USER }}.{{ hostname.stdout }}/public_html/_h5ai"
tags:
- h5ai