-
Notifications
You must be signed in to change notification settings - Fork 4
/
playbook.yml
110 lines (92 loc) · 2.38 KB
/
playbook.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
---
- name: Install Neo Vim
hosts: 127.0.0.1
tasks:
- name: Ensure apt is up to date
become: yes
apt:
upgrade: yes
update_cache: yes
- name: Install Neovim Plugin dependencies
become: yes
apt:
name:
- python3
- python3-venv
- nodejs
- npm
state: present
- name: Download Neovim app image
get_url:
url: https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
dest: /tmp/nvim.appimage
- name: Modify access rights
become: yes
file:
path: /tmp/nvim.appimage
mode: u+x
- name: Move app image to user bin folder
become: yes
copy:
src: /tmp/nvim.appimage
dest: /usr/local/bin/nvim
remote_src: yes
- name: Update bashrc
copy:
src: bashrc
dest: ~/.bashrc
- name: Remove existing Neovim configuration
file:
path: ~/.local/share/nvim
state: absent
- name: Clone Neovim configuration repository
git:
repo: https://github.com/S010MON/nvim.git
dest: ~/.config/nvim
depth: 1
- name: Install Tmux
hosts: 127.0.0.1
tasks:
- name: Install TMUX dependencies
become: yes
apt:
name:
- libevent-dev
- ncurses-dev
state: present
- name: Download TMUX source
get_url:
url: https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz
dest: /tmp/tmux-3.3a.tar.gz
- name: Extract TMUX source
unarchive:
src: /tmp/tmux-3.3a.tar.gz
dest: /tmp
remote_src: yes
- name: Configure TMUX
become: yes
command: ./configure
args:
chdir: /tmp/tmux-3.3a
- name: Make and install TMUX
become: yes
make:
chdir: /tmp/tmux-3.3a
target: install
- name: Create TMUX configuration directory
file:
path: "~/.config/tmux"
state: directory
mode: '0755'
- name: Clone TMUX package manager
git:
repo: https://github.com/tmux-plugins/tpm
dest: "~/.tmux/plugins/tpm"
- name: Copy TMUX configuration file
copy:
src: tmux.conf
dest: "~/.config/tmux/tmux.conf"
- name: Restart the shell
shell: exec $SHELL
args:
executable: /bin/bash