2018-08-23 12:32:42 +00:00
|
|
|
---
|
2021-06-15 08:33:52 +00:00
|
|
|
- name: dotfiles -- Copying Xdefaults
|
|
|
|
template:
|
|
|
|
src: files/dotfiles/Xdefaults
|
|
|
|
dest: /home/{{ item.username }}/.Xdefaults
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
|
|
|
|
# Tmux
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy tmux.conf
|
2018-08-23 14:15:52 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/tmux.conf
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.tmux.conf
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2018-08-23 14:15:52 +00:00
|
|
|
|
2018-11-12 10:04:06 +00:00
|
|
|
|
2021-06-15 08:33:52 +00:00
|
|
|
# ZSH
|
2021-06-17 09:20:59 +00:00
|
|
|
- name: dotiles -- create and copy .config/zsh directory
|
|
|
|
copy:
|
2021-07-03 15:00:38 +00:00
|
|
|
src: files/dotfiles/zsh
|
2021-07-03 14:57:14 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/zsh/
|
2021-07-03 14:38:05 +00:00
|
|
|
owner: "{{ item.username }}"
|
2021-06-15 08:33:52 +00:00
|
|
|
mode: '0755'
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
2018-08-26 09:38:58 +00:00
|
|
|
|
2021-06-15 08:33:52 +00:00
|
|
|
- name: dotfiles -- Copy local zshenv
|
2018-08-26 09:38:58 +00:00
|
|
|
template:
|
2021-06-15 08:33:52 +00:00
|
|
|
src: files/dotfiles/zshenv
|
|
|
|
dest: /home/{{ item.username }}/.zshenv
|
2020-07-17 06:42:50 +00:00
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
2018-08-23 14:41:22 +00:00
|
|
|
|
2021-07-08 08:17:17 +00:00
|
|
|
- name: dotfiles -- Copy local zshrc
|
|
|
|
template:
|
2021-07-08 08:22:30 +00:00
|
|
|
src: files/dotfiles/.zshrc
|
2021-07-08 08:17:17 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/zsh/.zshrc
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
|
|
|
|
2021-06-15 08:33:52 +00:00
|
|
|
- name: dotiles -- clone zsh syntax-hightlighting
|
|
|
|
git:
|
|
|
|
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
|
|
dest: /home/{{ item.username }}/.config/zsh/zsh-syntax-highlighting
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
|
|
|
|
|
|
|
- name: dotiles -- clone zsh autosuggestions
|
|
|
|
git:
|
|
|
|
repo: https://github.com/zsh-users/zsh-autosuggestions.git
|
|
|
|
dest: /home/{{ item.username }}/.config/zsh/zsh-autosuggestions
|
2020-07-17 06:42:50 +00:00
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
2018-11-12 09:08:52 +00:00
|
|
|
|
2021-06-23 19:30:46 +00:00
|
|
|
- name: dotiles -- clone zsh zsh-history-substring-search
|
|
|
|
git:
|
|
|
|
repo: https://github.com/zsh-users/zsh-history-substring-search
|
|
|
|
dest: /home/{{ item.username }}/.config/zsh/zsh-history-substring-search
|
2021-07-08 08:22:30 +00:00
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
2021-06-23 19:30:46 +00:00
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
|
|
|
|
2021-06-15 08:33:52 +00:00
|
|
|
- name: dotiles -- clone zsh auto-ls
|
|
|
|
git:
|
|
|
|
repo: https://github.com/desyncr/auto-ls
|
|
|
|
dest: /home/{{ item.username }}/.config/zsh/auto-ls
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
|
|
|
|
|
|
|
- name: dotiles -- clone zsh pure prompt
|
|
|
|
git:
|
|
|
|
repo: https://github.com/sindresorhus/pure.git
|
|
|
|
dest: /home/{{ item.username }}/.config/zsh/pure
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'zsh'
|
|
|
|
|
|
|
|
|
2019-06-09 09:05:33 +00:00
|
|
|
# Fish config
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Create fish config directory
|
2019-06-09 09:44:40 +00:00
|
|
|
file:
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/fish/
|
2019-06-09 09:44:40 +00:00
|
|
|
state: directory
|
2020-07-17 06:42:50 +00:00
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'fish'
|
2019-06-09 09:44:40 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy config.fish
|
2019-06-09 09:44:40 +00:00
|
|
|
template:
|
|
|
|
src: files/dotfiles/config.fish
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/fish/
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'fish'
|
2019-06-09 09:44:40 +00:00
|
|
|
register: fishconfig
|
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy fisher plugin list
|
2019-06-09 09:44:40 +00:00
|
|
|
template:
|
|
|
|
src: files/dotfiles/fishfile
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/fish/
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: prompt == 'fish'
|
2019-06-09 09:44:40 +00:00
|
|
|
register: fishplugin
|
|
|
|
|
2019-06-09 09:05:33 +00:00
|
|
|
# Vim config
|
2020-05-26 07:10:35 +00:00
|
|
|
#
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy .vim/
|
2018-08-23 14:54:27 +00:00
|
|
|
copy:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/vim/
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.vim/
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2018-08-23 14:45:48 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Creates .vim/autoload/
|
2018-08-23 14:54:27 +00:00
|
|
|
file:
|
2020-07-17 06:42:50 +00:00
|
|
|
path: /home/{{ item.username }}/.vim/autoload/
|
2018-08-23 14:54:27 +00:00
|
|
|
state: directory
|
2020-07-17 06:42:50 +00:00
|
|
|
with_items: "{{ dotusers }}"
|
2018-08-23 14:54:27 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Download plug.vim
|
2018-08-23 14:41:22 +00:00
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.vim/autoload/plug.vim
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2018-08-23 14:41:22 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy vimrc
|
2018-08-23 14:41:22 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/vimrc
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.vimrc
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2020-05-26 07:03:54 +00:00
|
|
|
|
2020-05-26 07:10:35 +00:00
|
|
|
# Neovim config
|
2020-05-26 07:03:54 +00:00
|
|
|
- name: dotfiles -- Copy nvim config
|
|
|
|
copy:
|
|
|
|
src: files/dotfiles/nvim
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: editor == 'nvim'
|
2020-05-26 07:03:54 +00:00
|
|
|
|
|
|
|
- name: dotfiles -- Download plug.vim for nvim
|
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config/nvim/autoload/plug.vim
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: editor == 'nvim'
|
2020-05-26 07:03:54 +00:00
|
|
|
|
2021-06-15 08:33:52 +00:00
|
|
|
# coc snippets
|
|
|
|
- name: dotfiles -- Copying snippets
|
|
|
|
copy:
|
|
|
|
src: files/dotfiles/ultisnips/
|
|
|
|
dest: /home/{{ item.username }}/.config/coc/ultisnips
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
|
2020-05-26 07:10:35 +00:00
|
|
|
# Alacritty terminal
|
2020-05-26 07:03:54 +00:00
|
|
|
- name: dotfiles -- Copy alacritty config
|
|
|
|
copy:
|
|
|
|
src: files/dotfiles/alacritty
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.config
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2018-08-23 14:54:27 +00:00
|
|
|
|
2019-06-09 09:05:33 +00:00
|
|
|
# Ssh config
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Creates .ssh
|
2018-08-23 15:25:03 +00:00
|
|
|
file:
|
2020-07-17 06:42:50 +00:00
|
|
|
path: /home/{{ item.username }}/.ssh/
|
2018-08-23 15:25:03 +00:00
|
|
|
state: directory
|
2020-07-17 06:42:50 +00:00
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
2020-02-24 05:55:28 +00:00
|
|
|
when: not server
|
2019-05-14 13:10:05 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy ssh user config
|
2018-08-23 15:25:03 +00:00
|
|
|
template:
|
2020-07-17 06:42:50 +00:00
|
|
|
src: files/dotfiles/ssh/{{ item.ssh_config }}
|
|
|
|
dest: /home/{{ item.username }}/.ssh/config
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: not server
|
2018-08-23 15:25:03 +00:00
|
|
|
|
2019-06-09 09:05:33 +00:00
|
|
|
# Git config
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy gitconfig
|
2018-08-23 16:00:30 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/gitconfig
|
2020-07-17 06:42:50 +00:00
|
|
|
dest: /home/{{ item.username }}/.gitconfig
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.group }}"
|
|
|
|
with_items: "{{ dotusers }}"
|
|
|
|
when: not server
|