Add first version of playbooks and configs

Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
Matej Focko 2020-10-11 15:09:15 +02:00
parent cf3839f82f
commit de292d018f
No known key found for this signature in database
GPG key ID: 707F7C6CBA7A2271
22 changed files with 527 additions and 0 deletions
playbooks/roles/shell/tasks

View file

@ -0,0 +1,18 @@
---
- name: Install all packages for shell
dnf:
name:
- zsh
- tmux
- neovim
- emacs
state: present
- name: Set default shell and generate SSH key
user:
name: mfocko
shell: /bin/zsh
- include: nvim.yml
- include: zsh.yml
- include: tmux.yml

View file

@ -0,0 +1,8 @@
---
- name: Create init.vim
template:
src: templates/init.vim.j2
dest: ~/.config/nvim/init.vim
- name: Install vim-plug
shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

View file

@ -0,0 +1,13 @@
---
- name: Clone tpm
shell: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
- name: Create tmux.conf
template:
src: templates/tmux.conf.j2
dest: ~/.tmux.conf
- name: Create tmux status configuration
template:
src: templates/tmux_status.conf.j2
dest: ~/.tmux/status.conf

View file

@ -0,0 +1,22 @@
---
- name: Install oh-my-zsh
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
- name: Clone zsh-autosuggestions
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- name: Clone zsh-syntax-highlighting
shell: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- name: Clone starship
shell: curl -fsSL https://starship.rs/install.sh | bash
- name: Create zshrc
template:
src: templates/zshrc.j2
dest: ~/.zshrc
- name: Create starship configuration
template:
src: templates/starship.toml.j2
dest: ~/.config/starship.toml