[TIDY] Update to ansible 4 module names
This commit is contained in:
parent
a384c4385a
commit
9f7fa75980
32 changed files with 139 additions and 121 deletions
|
@ -2,17 +2,17 @@
|
|||
# Common/Usersettings: Universial Dotfiles. Update regularly.
|
||||
|
||||
- name: usersettings - Install/ Update oh-my-zsh for current user
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/robbyrussell/oh-my-zsh.git
|
||||
dest: .oh-my-zsh
|
||||
|
||||
- name: usersettings - Install/ Update fzf sources
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/junegunn/fzf.git
|
||||
dest: .fzf
|
||||
register: fzf_git
|
||||
- name: (Re-)Install fzf
|
||||
shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
||||
ansible.builtin.shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
||||
when:
|
||||
- fzf_git.after != fzf_git.before
|
||||
|
||||
|
@ -20,62 +20,81 @@
|
|||
block:
|
||||
- name: usersettings - Install pip virtualenvwrapper (Debian)
|
||||
become: yes
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
extra_args: --system
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Debian"
|
||||
- name: usersettings - Install pip virtualenvwrapper (macOS)
|
||||
environment:
|
||||
PATH: "/usr/local/bin:{{ ansible_env.PATH }}"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
|
||||
- name: usersettings - Install pip virtualenvwrapper (CentOS, ArchLinux)
|
||||
become: yes
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Centos" or
|
||||
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"
|
||||
when: usersetup_virtualenvwrapper
|
||||
- name: usersettings - Copy dotfiles
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: "{{ role_path }}/files/_gitignore_global", dest: ".gitignore_global" }
|
||||
- {
|
||||
src: "{{ role_path }}/files/_gitignore_global",
|
||||
dest: ".gitignore_global",
|
||||
}
|
||||
- { src: "{{ role_path }}/files/_vimrc", dest: ".vimrc" }
|
||||
- { src: "{{ role_path }}/files/_oh-my-zsh/jtbx.zsh-theme", dest: ".oh-my-zsh/custom/themes/jtbx.zsh-theme" }
|
||||
- {
|
||||
src: "{{ role_path }}/files/_oh-my-zsh/jtbx.zsh-theme",
|
||||
dest: ".oh-my-zsh/custom/themes/jtbx.zsh-theme",
|
||||
}
|
||||
- name: usersettings - Set zshrc
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_zshrc.j2"
|
||||
dest: "{{ ansible_user_dir }}/.zshrc"
|
||||
- name: usersettings - Set global gitconfig
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_gitconfig.j2"
|
||||
dest: "{{ ansible_user_dir }}/.gitconfig"
|
||||
when: usersetup_gitconfig == true
|
||||
- name: usersettings - Set tmux.conf
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_tmux.conf.j2"
|
||||
dest: "{{ ansible_user_dir }}/.tmux.conf"
|
||||
|
||||
- name: usersettings - Create .vim directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: .vim/autoload
|
||||
state: directory
|
||||
|
||||
- name: usersettings - Install vim plugin manager
|
||||
get_url:
|
||||
ansible.builtin.get_url:
|
||||
url: https://tpo.pe/pathogen.vim
|
||||
dest: .vim/autoload/pathogen.vim
|
||||
|
||||
- name: usersettings - Install vim plugins
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: "{{ item.repo }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { repo: "https://github.com/itchyny/lightline.vim", dest: ".vim/bundle/lightline" }
|
||||
- {
|
||||
repo: "https://github.com/itchyny/lightline.vim",
|
||||
dest: ".vim/bundle/lightline",
|
||||
}
|
||||
- { repo: "https://github.com/w0rp/ale", dest: ".vim/bundle/ale" }
|
||||
- { repo: "https://github.com/airblade/vim-gitgutter", dest: ".vim/bundle/vim-gitgutter" }
|
||||
- { repo: "https://github.com/sheerun/vim-polyglot", dest: ".vim/bundle/vim-polyglot" }
|
||||
- { repo: "https://github.com/tpope/vim-commentary", dest: ".vim/bundle/vim-commentary" }
|
||||
- {
|
||||
repo: "https://github.com/airblade/vim-gitgutter",
|
||||
dest: ".vim/bundle/vim-gitgutter",
|
||||
}
|
||||
- {
|
||||
repo: "https://github.com/sheerun/vim-polyglot",
|
||||
dest: ".vim/bundle/vim-polyglot",
|
||||
}
|
||||
- {
|
||||
repo: "https://github.com/tpope/vim-commentary",
|
||||
dest: ".vim/bundle/vim-commentary",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue