Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
vim: add installation step, simplify config.vars
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtamborski committed May 15, 2019
1 parent c5741b4 commit fcc7688
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions roles/vim/tasks/main.yaml
@@ -1,28 +1,35 @@
---

- name: vim - theme
- name: vim - install.self
include_role:
public: yes
name: common
tasks_from: install
vars:
given: "{{ vim.install.self }}"


- name: vim - config.theme
include_role:
public: yes
name: common
tasks_from: config
vars:
src:
path: "vim/files/"
name: "hero.vim"
dst:
path: "{{ vim.theme.path }}"
name: "{{ vim.theme.name }}"
given:
src:
path: "vim/files/"
name: "hero.vim"
dst: "{{ vim.config.theme }}"


- name: vim - config
- name: vim - config.self
include_role:
public: yes
name: common
tasks_from: config
vars:
src:
path: "vim/files/"
name: "config"
dst:
path: "{{ vim.config.path }}"
name: "{{ vim.config.name }}"
given:
src:
path: "vim/files/"
name: "config"
dst: "{{ vim.config.self }}"

0 comments on commit fcc7688

Please sign in to comment.