Move when statements in task block

This commit is contained in:
flyingscorpio@clevo 2022-10-01 12:08:52 +02:00
parent 24f68593f0
commit db230368ac

View file

@ -6,6 +6,8 @@
failed_when: init_vim.stat.exists
- name: Install (Archlinux)
when:
ansible_facts['distribution'] == 'Archlinux'
block:
- name: Install things with pacman (Archlinux)
become: true
@ -37,10 +39,10 @@
with_items:
- '@ansible/ansible-language-server'
- diagnostic-languageserver
when:
ansible_facts['distribution'] == 'Archlinux'
- name: Install (Debian)
when:
ansible_facts['distribution'] == 'Debian'
block:
- name: Find latest neovim version
uri:
@ -94,8 +96,6 @@
# TODO:
# - lua-language-server
# - texlab
when:
ansible_facts['distribution'] == 'Debian'
- name: Grab marksman (LSP server) binary
block: