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 - name: check if tpm is installed
become_user: user become_user: user
stat: stat:

View File

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

View File

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

View File

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

View File

@@ -4,3 +4,14 @@
dest: /usr/bin/nvim dest: /usr/bin/nvim
mode: '0755' mode: '0755'
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum 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