An open API service indexing awesome lists of open source software.

https://github.com/lyz-code/ansible-vim


https://github.com/lyz-code/ansible-vim

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# vim

Install vim, based on [this generic role](https://git.fok.systems/ansible-roles/generic_program_install)

## Requirements

`git` and `pip` should be installed

## Role Variables
* `program` : Dictionary with the information of the program
* `name` : Program name
* `packages` : List of packages to install

* `config`: Dictionary with the information of the configuration
* `directory`: Base directory to perform the clone of the configuration
directory
* `git_repo`: Git repository of your dotfiles. It's assumed that the
repository has the same structure as your home directory. For example, in
the root of my vim configuration git repository I've got a directory called
`.vim` and a `.vimrc` file.

## Dependencies

This role is based on [this one](https://git.fok.systems/ansible-roles/generic_program_install)

Install it with:
```bash
ansible-galaxy install -r requirements.yml
```

## Example playbook

```yaml
- hosts: all
roles:
- vim
```

## Testing

**Note: Tests are broken because it needs to load the config from gitea**

To test the role you need [molecule](http://molecule.readthedocs.io/en/latest/).

```bash
molecule test
```

## License

GPLv2

## Author Information
Lyz (lyz@riseup.net)