2018-08-23 12:32:42 +00:00
|
|
|
---
|
2018-08-23 14:15:52 +00:00
|
|
|
- name: Clone TPM (tmux plugin manager)
|
|
|
|
git:
|
|
|
|
repo: https://github.com/tmux-plugins/tpm
|
|
|
|
dest: /home/{{ item.username }}/.tmux/plugins/tpm
|
|
|
|
version: master
|
|
|
|
accept_hostkey: yes
|
2018-08-23 14:16:58 +00:00
|
|
|
with_items: "{{ me }}"
|
2018-08-23 14:15:52 +00:00
|
|
|
|
|
|
|
- name: Copy tmux.conf
|
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/tmux.conf
|
2018-08-23 14:15:52 +00:00
|
|
|
dest: /home/{{ item.username }}/.tmux.conf
|
2018-08-23 14:42:26 +00:00
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-25 13:36:24 +00:00
|
|
|
with_items: "{{ me }}"
|
2018-08-23 14:15:52 +00:00
|
|
|
|
2018-08-26 09:38:58 +00:00
|
|
|
- name: Install tmuxinator
|
|
|
|
gem:
|
|
|
|
name: tmuxinator
|
|
|
|
state: latest
|
2018-11-07 07:48:33 +00:00
|
|
|
when: not minimal and not server
|
|
|
|
|
|
|
|
- name: Copy .tmuxinator/
|
|
|
|
copy:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/tmuxinator/
|
2018-11-07 07:48:33 +00:00
|
|
|
dest: /home/{{ item.username }}/.tmuxinator/
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.username }}"
|
|
|
|
with_items: "{{ me }}"
|
|
|
|
when: not minimal and not server
|
|
|
|
|
2018-11-12 10:04:06 +00:00
|
|
|
- name: Download antibody
|
2018-11-12 10:23:56 +00:00
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/getantibody/installer/master/install
|
|
|
|
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
|
|
|
|
|
|
|
- name: Execute the antibody.sh
|
|
|
|
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
|
|
|
|
|
|
|
- name: Remove the antibody.sh
|
|
|
|
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
|
|
|
|
|
|
|
- name: Copy local zshrc
|
2018-11-12 09:08:52 +00:00
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/zshrc
|
2018-11-12 09:08:52 +00:00
|
|
|
dest: /home/{{ item.username }}/.zshrc
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.username }}"
|
|
|
|
with_items: "{{ me }}"
|
2019-02-08 07:17:42 +00:00
|
|
|
when: prompt == 'zsh'
|
2018-11-12 09:08:52 +00:00
|
|
|
|
|
|
|
- name: 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
|
2018-08-26 09:38:58 +00:00
|
|
|
dest: /home/{{ item.username }}/.zshrc.local
|
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-26 09:38:58 +00:00
|
|
|
with_items: "{{ me }}"
|
2019-02-08 07:17:42 +00:00
|
|
|
when: prompt == 'zsh'
|
2018-08-23 14:41:22 +00:00
|
|
|
|
2018-11-12 09:08:52 +00:00
|
|
|
- name: Copy local zsh_plugins.txt
|
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/zsh_plugins.txt
|
2018-11-12 09:08:52 +00:00
|
|
|
dest: /home/{{ item.username }}/.zsh_plugins.txt
|
|
|
|
owner: "{{ item.username }}"
|
|
|
|
group: "{{ item.username }}"
|
|
|
|
with_items: "{{ me }}"
|
2019-02-08 07:17:42 +00:00
|
|
|
when: prompt == 'zsh'
|
2018-11-12 09:08:52 +00:00
|
|
|
|
2018-08-23 14:45:48 +00:00
|
|
|
- name: Copy .vim/
|
2018-08-23 14:54:27 +00:00
|
|
|
copy:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/vim/
|
2018-08-23 14:45:48 +00:00
|
|
|
dest: /home/{{ item.username }}/.vim/
|
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 14:45:48 +00:00
|
|
|
with_items: "{{ me }}"
|
|
|
|
|
2018-08-23 14:54:27 +00:00
|
|
|
- name: Creates .vim/autoload/
|
|
|
|
file:
|
|
|
|
path: /home/{{ item.username }}/.vim/autoload/
|
|
|
|
state: directory
|
|
|
|
with_items: "{{ me }}"
|
|
|
|
|
2018-08-23 14:41:22 +00:00
|
|
|
- name: Download plug.vim
|
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
dest: /home/{{ item.username }}/.vim/autoload/plug.vim
|
2018-08-23 14:42:26 +00:00
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 14:41:22 +00:00
|
|
|
with_items: "{{ me }}"
|
|
|
|
|
|
|
|
- name: Copy vimrc
|
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/vimrc
|
2018-08-23 14:41:22 +00:00
|
|
|
dest: /home/{{ item.username }}/.vimrc
|
2018-08-23 14:42:26 +00:00
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 14:41:22 +00:00
|
|
|
with_items: "{{ me }}"
|
2018-08-23 14:54:27 +00:00
|
|
|
|
2018-08-23 15:25:03 +00:00
|
|
|
- name: Creates .ssh
|
|
|
|
file:
|
|
|
|
path: /home/{{ item.username }}/.ssh/
|
|
|
|
state: directory
|
2018-08-23 15:35:23 +00:00
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 15:25:03 +00:00
|
|
|
with_items: "{{ me }}"
|
|
|
|
|
|
|
|
- name: Copy ssh user config
|
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/sshconfig
|
2018-08-23 15:25:03 +00:00
|
|
|
dest: /home/{{ item.username }}/.ssh/config
|
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 15:25:03 +00:00
|
|
|
with_items: "{{ me }}"
|
|
|
|
|
2018-08-23 16:00:30 +00:00
|
|
|
- name: Copy gitconfig
|
|
|
|
template:
|
2019-05-11 09:03:34 +00:00
|
|
|
src: files/dotfiles/gitconfig
|
2018-08-23 16:00:30 +00:00
|
|
|
dest: /home/{{ item.username }}/.gitconfig
|
|
|
|
owner: "{{ item.username }}"
|
2018-10-17 09:40:09 +00:00
|
|
|
group: "{{ item.username }}"
|
2018-08-23 16:00:30 +00:00
|
|
|
with_items: "{{ me }}"
|
|
|
|
|