[TIDY] Set some "diff: false", fix linter warnings
This commit is contained in:
parent
47dd9508a6
commit
f380e0ba29
34 changed files with 236 additions and 195 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# Common/Usersettings: Universial Dotfiles. Update regularly.
|
||||
|
||||
- name: usersettings - Install required tools
|
||||
- name: Usersettings - Install required tools
|
||||
become: true
|
||||
ignore_errors: true # just fail on systems without sudo access
|
||||
ansible.builtin.package:
|
||||
|
@ -10,26 +10,30 @@
|
|||
vars:
|
||||
packages:
|
||||
- git
|
||||
diff: false
|
||||
|
||||
- name: usersettings - Install/ Update oh-my-zsh for current user
|
||||
- name: Usersettings - Install/ Update oh-my-zsh for current user
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/robbyrussell/oh-my-zsh.git
|
||||
dest: "{{ ansible_user_dir }}/.oh-my-zsh"
|
||||
diff: false
|
||||
|
||||
- name: usersettings - Install/ Update fzf sources
|
||||
- name: Usersettings - Install/ Update fzf sources
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/junegunn/fzf.git
|
||||
dest: "{{ ansible_user_dir }}/.fzf"
|
||||
register: fzf_git
|
||||
diff: false
|
||||
- name: (Re-)Install fzf
|
||||
when:
|
||||
- fzf_git.after != fzf_git.before
|
||||
ansible.builtin.shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
||||
|
||||
- name: usersettings - Install pip virtualenvwrapper
|
||||
- name: Usersettings - Install pip virtualenvwrapper
|
||||
when: usersetup_virtualenvwrapper
|
||||
diff: false
|
||||
block:
|
||||
- name: usersettings - Install pip3
|
||||
- name: Usersettings - Install pip3
|
||||
when:
|
||||
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "Darwin" and
|
||||
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "FreeBSD"
|
||||
|
@ -41,26 +45,27 @@
|
|||
vars:
|
||||
packages:
|
||||
- python3-pip
|
||||
- name: usersettings - Install pip virtualenvwrapper (Debian)
|
||||
diff: false
|
||||
- name: Usersettings - Install pip virtualenvwrapper (Debian)
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Debian"
|
||||
become: true
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
extra_args: --system
|
||||
- name: usersettings - Install pip virtualenvwrapper (macOS)
|
||||
- name: Usersettings - Install pip virtualenvwrapper (macOS)
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
|
||||
environment:
|
||||
PATH: "/usr/local/bin:{{ ansible_env.PATH }}"
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
- name: usersettings - Install pip virtualenvwrapper (CentOS, ArchLinux)
|
||||
- name: Usersettings - Install pip virtualenvwrapper (CentOS, ArchLinux)
|
||||
when:
|
||||
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Centos" or
|
||||
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Archlinux"
|
||||
become: true
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
- name: usersettings - Copy dotfiles
|
||||
- name: Usersettings - Copy dotfiles
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -77,13 +82,13 @@
|
|||
src: "{{ role_path }}/files/_oh-my-zsh/jtbx.zsh-theme",
|
||||
dest: "{{ ansible_user_dir }}/.oh-my-zsh/custom/themes/jtbx.zsh-theme",
|
||||
}
|
||||
- name: usersettings - Create some directories
|
||||
- name: Usersettings - Create some directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ ansible_user_dir }}/.config/htop/"
|
||||
- name: usersettings - Set templated dotfiles
|
||||
- name: Usersettings - Set templated dotfiles
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -93,44 +98,45 @@
|
|||
- {
|
||||
src: "{{ role_path }}/templates/_zshrc.j2",
|
||||
dest: "{{ ansible_user_dir }}/.zshrc",
|
||||
force: yes,
|
||||
force: true,
|
||||
}
|
||||
- {
|
||||
src: "{{ role_path }}/templates/_tmux.conf.j2",
|
||||
dest: "{{ ansible_user_dir }}/.tmux.conf",
|
||||
force: yes,
|
||||
force: true,
|
||||
}
|
||||
- {
|
||||
src: "{{ role_path }}/templates/_vimrc.j2",
|
||||
dest: "{{ ansible_user_dir }}/.vimrc",
|
||||
force: yes,
|
||||
force: true,
|
||||
}
|
||||
- {
|
||||
src: "{{ role_path }}/templates/htoprc.j2",
|
||||
dest: "{{ ansible_user_dir }}/.config/htop/htoprc",
|
||||
force: no,
|
||||
}
|
||||
- name: usersettings - Set global gitconfig
|
||||
- name: Usersettings - Set global gitconfig
|
||||
when: usersetup_gitconfig == true
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_gitconfig.j2"
|
||||
dest: "{{ ansible_user_dir }}/.gitconfig"
|
||||
|
||||
- name: usersettings - Vim Plugings
|
||||
- name: Usersettings - Vim Plugings
|
||||
when: usersetup_vimplugins == true
|
||||
block:
|
||||
- name: usersettings - Create .vim directory
|
||||
- name: Usersettings - Create .vim directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_user_dir }}/.vim/autoload"
|
||||
state: directory
|
||||
- name: usersettings - Install vim plugin manager
|
||||
- name: Usersettings - Install vim plugin manager
|
||||
ansible.builtin.get_url:
|
||||
url: https://tpo.pe/pathogen.vim
|
||||
dest: "{{ ansible_user_dir }}/.vim/autoload/pathogen.vim"
|
||||
- name: usersettings - Install vim plugins
|
||||
- name: Usersettings - Install vim plugins
|
||||
ansible.builtin.git:
|
||||
repo: "{{ item.repo }}"
|
||||
dest: "{{ item.dest }}"
|
||||
diff: false
|
||||
with_items:
|
||||
- {
|
||||
repo: "https://github.com/itchyny/lightline.vim",
|
||||
|
@ -152,3 +158,4 @@
|
|||
repo: "https://github.com/tpope/vim-commentary",
|
||||
dest: "{{ ansible_user_dir }}/.vim/bundle/vim-commentary",
|
||||
}
|
||||
# TODO: https://github.com/jan-warchol/selenized
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue