Start using Ansible for config management

This commit is contained in:
Kenneth Benzie 2021-10-25 22:54:56 +01:00
parent 34073608c8
commit 4e41c3a3d4
2 changed files with 18 additions and 7 deletions

View File

@ -1,9 +1,3 @@
--- ---
- location: ~/.vim - location: ~/.vim
- pip: - command: ansible-playbook main.yaml
- vim-vint
- yamllint
- cmakelint
- repo:
- remote: https://github.com/k-takata/minpac.git
location: ~/.vim/pack/minpac/opt/minpac

17
main.yaml Normal file
View File

@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://json.schemastore.org/ansible-playbook.json
---
- hosts: localhost
tasks:
- name: Install pip packages
pip:
name: '{{item}}'
state: latest
extra_args: --user
with_items:
- cmakelint
- vim-vint
- yamllint
- name: Clone minpac repository
git:
repo: https://github.com/k-takata/minpac.git
dest: pack/minpac/opt/minpac