-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yml
90 lines (89 loc) · 2.43 KB
/
install.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
---
- name: Initial Setup
hosts: localhost
vars_files:
- "./vars/main.yml"
tasks:
- name: Update and upgrade apt packages
become: true
apt:
upgrade: yes
update_cache: yes
- name: Install extra packages
become: yes
apt:
state: present
name:
- "build-essential"
- "software-properties-common"
- "nano"
- "zip"
- "unzip"
- "p7zip"
- "curl"
- "tree"
- "lsof"
- "man-db"
- "ksmtuned"
- "git"
- "pwgen"
- "htop"
- "iotop"
- "nload"
- "ufw"
- "ncdu"
- "mc"
- "screen"
- "tmux"
- "apache2-utils"
- "jq"
- "lib32z1"
- "moreutils"
- name: Check if savoury1/ffmpeg4 PPA is already present
become: yes
stat:
path: "/etc/apt/sources.list.d/ppa_savoury1_ffmpeg4_{{ ansible_distribution_release }}.list"
register: savoury1_ffmpeg4_sourcelist_status
- name: Add savoury1/ffmpeg4 PPA
become: yes
apt_repository:
repo: 'ppa:savoury1/ffmpeg4'
state: 'present'
update_cache: yes
when: savoury1_ffmpeg4_sourcelist_status.stat.exists
- name: Install ffmpeg
become: yes
apt:
state: present
name:
- "ffmpeg"
- name: Install Nvidia Drivers
vars:
ansible_become: true
include_role:
name: nvidia.nvidia_driver
- name: Install Anaconda
include_role:
name: andrewrothstein.anaconda
- name: Conda Initialization
shell: "conda init bash"
args:
executable: /bin/bash
- name: Create DeepFaceLab Anaconda Environment
include_role:
name: andrewrothstein.conda-env
- name: Clone DFL Linux repo
git:
repo: https://github.com/nagadit/DeepFaceLab_Linux.git
dest: ~/Desktop/DeepFaceLab_Linux
version: master
- name: Clone DeepFaceLab repo
git:
repo: https://github.com/iperov/DeepFaceLab.git
dest: ~/Desktop/DeepFaceLab_Linux/DeepFaceLab
version: master
- name: Install DeepFaceLab Dependencies
shell: "source {{ conda_env_conda_dir }}/bin/activate {{ conda_env_name }} && python -m pip install -r ./DeepFaceLab/requirements-cuda.txt"
args:
chdir: "~/Desktop/DeepFaceLab_Linux/"
executable: /bin/bash