[TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is easiert to read. Also some spaces were another whitespace character on accident.
This commit is contained in:
parent
a9e89283a2
commit
a8285962a9
13 changed files with 74 additions and 74 deletions
|
@ -21,18 +21,18 @@
|
|||
dest: .fzf
|
||||
register: fzf_git
|
||||
- name: (Re-)Install fzf
|
||||
ansible.builtin.shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
||||
when:
|
||||
- fzf_git.after != fzf_git.before
|
||||
ansible.builtin.shell: ".fzf/install --key-bindings --no-completion --no-update-rc"
|
||||
|
||||
- name: usersettings - Install pip virtualenvwrapper
|
||||
when: usersetup_virtualenvwrapper
|
||||
block:
|
||||
- name: usersettings - Install pip3
|
||||
become: yes
|
||||
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"
|
||||
become: yes
|
||||
ansible.builtin.package:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
|
@ -40,24 +40,24 @@
|
|||
packages:
|
||||
- python3-pip
|
||||
- name: usersettings - Install pip virtualenvwrapper (Debian)
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Debian"
|
||||
become: yes
|
||||
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)
|
||||
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
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
|
||||
- name: usersettings - Install pip virtualenvwrapper (CentOS, ArchLinux)
|
||||
become: yes
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
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: yes
|
||||
ansible.builtin.pip:
|
||||
name: virtualenvwrapper
|
||||
- name: usersettings - Copy dotfiles
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
|
@ -77,10 +77,10 @@
|
|||
src: "{{ role_path }}/templates/_zshrc.j2"
|
||||
dest: "{{ ansible_user_dir }}/.zshrc"
|
||||
- name: usersettings - Set global gitconfig
|
||||
when: usersetup_gitconfig == true
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_gitconfig.j2"
|
||||
dest: "{{ ansible_user_dir }}/.gitconfig"
|
||||
when: usersetup_gitconfig == true
|
||||
- name: usersettings - Set tmux.conf
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/_tmux.conf.j2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue