Add first version of playbooks and configs
Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
parent
cf3839f82f
commit
de292d018f
22 changed files with 527 additions and 0 deletions
18
playbooks/roles/shell/tasks/main.yml
Normal file
18
playbooks/roles/shell/tasks/main.yml
Normal 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
|
8
playbooks/roles/shell/tasks/nvim.yml
Normal file
8
playbooks/roles/shell/tasks/nvim.yml
Normal 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'
|
13
playbooks/roles/shell/tasks/tmux.yml
Normal file
13
playbooks/roles/shell/tasks/tmux.yml
Normal 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
|
22
playbooks/roles/shell/tasks/zsh.yml
Normal file
22
playbooks/roles/shell/tasks/zsh.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue