-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
47 lines (40 loc) · 1.19 KB
/
local.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
---
- hosts: localhost
connection: local
vars:
the_user: "{{ ansible_user_id }}"
tasks:
- name: install packages
become: yes
package:
name:
- curl
- git
- htop
- zsh
- neofetch
state: latest
update_cache: yes
- name: Install ohmyzsh unattended
shell: >
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh &&
sh install.sh --unattended
- name: Clone Powerlevel10k theme
command: "git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k"
- name: Clone zsh-autosuggestions
command: "git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions"
- name: Clone zsh-syntax-highlightingd
command: "git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting"
- name: copy .zshrc file
copy:
src: files/zshrc
dest: ~/.zshrc
- name: copy p10k.zsh file
copy:
src: files/p10k.zsh
dest: ~/.p10k.zsh
- name: change user shell to zsh
become: yes
user:
name: "{{ the_user }}"
shell: /bin/zsh