This commit is contained in:
2023-07-16 09:02:18 -05:00
parent cfd00f22b4
commit bd26500c9b
8 changed files with 69 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
- name: "Install tpm"
include_tasks: "../scripts/install_tpm.yml"
- name: "Install OhMyZSH"
include_tasks: "../scripts/install_ohmyzsh.yml"

View File

@@ -1,14 +1,3 @@
- name: check if nvchad is installed
become_user: user
stat:
path: ~/.config/nvim
register: nvchad
- name: Download NVChad
become_user: user
shell: git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
when: nvchad.stat.exists == false
- name: check if tpm is installed
become_user: user
stat:

View File

@@ -7,8 +7,8 @@
- name: "Install fonts"
include_tasks: "../scripts/install_fonts.yml"
- name: Enable wayland
shell: sed -i 's/WaylandEnable=false/WaylandEnable=true/' /etc/gdm3/custom.conf
#- name: Enable wayland
# shell: sed -i 's/WaylandEnable=false/WaylandEnable=true/' /etc/gdm3/custom.conf
- name: Start and enable services
ansible.builtin.systemd:

View File

@@ -2,6 +2,7 @@ required_packages:
- ripgrep
- ansible
- libfuse2
- fuse
- git
- zsh
- nfs-common
@@ -13,11 +14,10 @@ required_packages:
- libvirt-daemon
- stow
- tmux
- xsel
- easy-rsa
- docker.io
- httpie
- wl-clipboard
apt_keys:
- https://packages.cloud.google.com/apt/doc/apt-key.gpg

View File

@@ -17,12 +17,11 @@ required_packages:
- tmux
- terminator
- system76-keyboard-configurator
- xsel
- xclip
- openvpn
- easy-rsa
- docker.io
- httpie
- wl-clipboard
apt_keys:
- https://packages.cloud.google.com/apt/doc/apt-key.gpg

View File

@@ -4,3 +4,14 @@
dest: /usr/bin/nvim
mode: '0755'
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum
- name: check if nvchad is installed
become_user: user
stat:
path: ~/.config/nvim
register: nvchad
- name: Download NVChad
become_user: user
shell: git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
when: nvchad.stat.exists == false

View File

@@ -0,0 +1,38 @@
- name: Check that Oh My ZSH is installed
become_user: user
stat:
path: "~/.oh-my-zsh"
register: ohmyzsh_result
- name: Install Oh My ZSH
become_user: user
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
args:
creates: "~/.oh-my-zsh"
when: not ohmyzsh_result.stat.exists
- name: Check that Auto Suggestions is installed
become_user: user
stat:
path: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
register: auto_suggestions_result
- name: Install Auto Suggestions
become_user: user
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
when: not auto_suggestions_result.stat.exists
- name: check if zshrc file was moved
become_user: user
stat:
path: ~/.zshrc.pre-oh-my-zsh
register: zshrc
- name: Restore zshrc file
become_user: user
shell: rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
when: zshrc.stat.exists == true
- user:
name: "user"
shell: /usr/bin/zsh

10
scripts/install_tpm.yml Normal file
View File

@@ -0,0 +1,10 @@
- name: check if tpm is installed
become_user: user
stat:
path: ~/.tmux/plugins/tpm
register: tpm
- name: Download TPM
become_user: user
shell: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
when: tpm.stat.exists == false