Use with_items for npm module, installing a list doesn't work

This commit is contained in:
Tunui Franken 2022-08-11 10:10:30 +02:00
parent 35544eeb84
commit 4898b19a66

View file

@ -66,20 +66,17 @@
- mypy - mypy
- pylint3 - pylint3
- shellcheck - shellcheck
- name: Install language servers with apt (Debian)
become: true
apt:
name:
- lua-language-server
- texlab
- name: Install language servers with npm (Debian) - name: Install language servers with npm (Debian)
become: true become: true
npm: npm:
name: name: "{{ item }}"
- bash-language-server
- '@ansible/ansible-language-server'
global: true global: true
state: present state: present
with_items:
- bash-language-server
- '@ansible/ansible-language-server'
#- lua-language-server
#- texlab
when: when:
ansible_facts['distribution'] == 'Debian' ansible_facts['distribution'] == 'Debian'