Start using Ansible for config management
This commit is contained in:
parent
34073608c8
commit
4e41c3a3d4
@ -1,9 +1,3 @@
|
||||
---
|
||||
- location: ~/.vim
|
||||
- pip:
|
||||
- vim-vint
|
||||
- yamllint
|
||||
- cmakelint
|
||||
- repo:
|
||||
- remote: https://github.com/k-takata/minpac.git
|
||||
location: ~/.vim/pack/minpac/opt/minpac
|
||||
- command: ansible-playbook main.yaml
|
||||
|
17
main.yaml
Normal file
17
main.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user