2018-08-23 12:32:42 +00:00
|
|
|
---
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.tmux.conf
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
2018-08-23 14:15:52 +00:00
|
|
|
|
2019-06-09 09:05:33 +00:00
|
|
|
# Zsh config
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Download antibody
|
2020-05-26 07:22:47 +00:00
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/getantibody/installer/master/install
|
2018-11-12 10:23:56 +00:00
|
|
|
dest: /tmp/antibody.sh
|
|
|
|
mode: 0770
|
2019-05-10 16:31:40 +00:00
|
|
|
when: prompt == "zsh"
|
2018-11-12 10:04:06 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Execute the antibody.sh
|
2018-11-12 10:04:06 +00:00
|
|
|
shell: /tmp/antibody.sh
|
2018-11-12 10:20:17 +00:00
|
|
|
become: yes
|
2018-12-12 09:23:22 +00:00
|
|
|
ignore_errors: yes
|
2019-05-10 16:31:40 +00:00
|
|
|
when: prompt == "zsh"
|
2018-11-12 10:04:06 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Remove the antibody.sh
|
2018-11-12 10:04:06 +00:00
|
|
|
file: path=/tmp/antibody.sh state=absent
|
2019-05-10 16:31:40 +00:00
|
|
|
when: prompt == "zsh"
|
2018-08-26 09:38:58 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy local zshrc
|
2018-11-12 09:08:52 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/zshrc
|
2020-07-17 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.zshrc
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'zsh' and me in users
|
2018-11-12 09:08:52 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy local zshrc.local
|
2018-08-26 09:38:58 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/zshrc.local
|
2020-07-17 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.zshrc.local
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'zsh' and me in users
|
2018-08-23 14:41:22 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy local zsh_plugins.txt
|
2018-11-12 09:08:52 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/zsh_plugins.txt
|
2020-07-17 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.zsh_plugins.txt
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'zsh' and me in users
|
2018-11-12 09:08:52 +00:00
|
|
|
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config/fish/
|
2019-06-09 09:44:40 +00:00
|
|
|
state: directory
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'fish' and me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config/fish/
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'fish' and me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config/fish/
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: prompt == 'fish' and me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.vim/
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
path: /home/{{ me.username }}/.vim/autoload/
|
2018-08-23 14:54:27 +00:00
|
|
|
state: directory
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.vim/autoload/plug.vim
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.vimrc
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: editor == 'nvim' and me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config/nvim/autoload/plug.vim
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: editor == 'nvim' and me in users
|
2020-05-26 07:03:54 +00:00
|
|
|
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.config
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
path: /home/{{ me.username }}/.ssh/
|
2018-08-23 15:25:03 +00:00
|
|
|
state: directory
|
2020-07-17 04:36:08 +00:00
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
2018-08-23 15:25:03 +00:00
|
|
|
|
2020-03-17 04:44:48 +00:00
|
|
|
- name: dotfiles -- Copy ssh user config
|
2019-05-14 13:10:05 +00:00
|
|
|
template:
|
2020-04-16 09:44:55 +00:00
|
|
|
src: files/dotfiles/ssh/config_deploy
|
2020-07-17 04:36:08 +00:00
|
|
|
dest: /home/{{ admin.username }}/.ssh/config
|
|
|
|
owner: "{{ admin.username }}"
|
|
|
|
group: "{{ admin.group }}"
|
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-04-16 09:44:55 +00:00
|
|
|
src: files/dotfiles/ssh/config_me
|
2020-07-17 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.ssh/config
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|
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 04:36:08 +00:00
|
|
|
dest: /home/{{ me.username }}/.gitconfig
|
|
|
|
owner: "{{ me.username }}"
|
|
|
|
group: "{{ me.group }}"
|
2020-07-17 04:50:25 +00:00
|
|
|
when: me in users
|