Move main.yaml to tasks.yaml

This commit is contained in:
Kenneth Benzie 2021-11-19 21:40:33 +00:00
parent aa2190daec
commit 8ffdfd41cd
2 changed files with 35 additions and 37 deletions

View File

@ -1,37 +0,0 @@
# yaml-language-server: $schema=https://json.schemastore.org/ansible-playbook.json
---
- hosts: localhost
tasks:
- name: Clone minpac repository
git:
repo: https://github.com/k-takata/minpac.git
dest: pack/minpac/opt/minpac
- name: Install (neo)vim pip packages
pip:
name: '{{item}}'
state: latest
extra_args: --user
with_items:
- cmake-language-server
- cmakelint
- compdb
- vim-vint
- yamllint
- name: Install (neo)vim apt packages
when: ansible_os_family == "Debian"
become: true
apt:
name: '{{item}}'
state: latest
with_items:
- clangd-12
- name: Install (neo)vim clangd alternative
when: ansible_os_family == "Debian"
become: true
alternatives:
name: clangd
path: /usr/bin/clangd-12
link: /usr/local/bin/clangd
priority: 120

35
tasks.yaml Normal file
View File

@ -0,0 +1,35 @@
---
- name: (neo)vim clone minpac
git:
repo: https://github.com/k-takata/minpac.git
dest: pack/minpac/opt/minpac
- name: (neo)vim install pip packages
pip:
name: '{{item}}'
state: latest
extra_args: --user
with_items:
- cmake-language-server
- cmakelint
- compdb
- vim-vint
- yamllint
- name: (neo)vim install apt packages
when: ansible_os_family == "Debian"
become: true
apt:
name: '{{item}}'
state: latest
with_items:
- clangd-12
- name: (neo)vim install clangd alternative
when: ansible_os_family == "Debian"
become: true
alternatives:
name: clangd
path: /usr/bin/clangd-12
link: /usr/local/bin/clangd
priority: 120