-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.yml
45 lines (40 loc) · 1.18 KB
/
main.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
---
- name: Installation requirements
become: true
become_user: root
ansible.builtin.apt:
name: "{{ apt_packages }}"
update_cache: true
- name: Install hpts from npm
become: true
become_user: root
community.general.npm:
name: http-proxy-to-socks
global: true
- name: Git clone multitor
ansible.builtin.git:
repo: https://github.com/trimstray/multitor.git
dest: "{{ ansible_facts['env']['HOME'] }}/multitor"
clone: true
- name: Setup multitor
ansible.builtin.command:
argv:
- sudo
- "{{ ansible_facts['env']['HOME'] }}/multitor/setup.sh"
- install
- name: Send file - check_multitor.py
ansible.builtin.copy:
src: scripts/check_multitor.py
dest: "{{ ansible_facts['env']['HOME'] }}/check_multitor.py"
mode: '755'
force: true
owner: "{{ ansible_facts['env']['LOGNAME'] }}"
group: "{{ ansible_facts['env']['LOGNAME'] }}"
- name: Send file - run_multitor.sh
ansible.builtin.copy:
src: scripts/run_multitor.sh
dest: "{{ ansible_facts['env']['HOME'] }}/run_multitor.sh"
mode: '755'
force: true
owner: "{{ ansible_facts['env']['LOGNAME'] }}"
group: "{{ ansible_facts['env']['LOGNAME'] }}"