Add custom win_git module that actually works
This commit is contained in:
@@ -37,11 +37,6 @@
|
||||
dest: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
|
||||
version: master
|
||||
with_items: '{{git_config_repos}}'
|
||||
- win_owner:
|
||||
path: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
|
||||
user: Benie
|
||||
recurse: true
|
||||
with_items: '{{git_config_repos}}'
|
||||
|
||||
# - TODO: install pip packages
|
||||
# win_pip:
|
||||
|
||||
@@ -26,6 +26,13 @@
|
||||
file_type: directory
|
||||
register: found_plugins
|
||||
|
||||
- set_fact:
|
||||
backslashes: '\\'
|
||||
forwardslash: '/'
|
||||
- set_fact:
|
||||
managed_plugins: "{{managed_plugins | replace(backslashes, forwardslash)}}"
|
||||
found_plugins: "{{found_plugins | replace(backslashes, forwardslash)}}"
|
||||
|
||||
- name: remove found plugins which are not in the managed list
|
||||
win_file:
|
||||
path: '{{item.path}}'
|
||||
|
||||
@@ -13,15 +13,6 @@
|
||||
repo: git@code.infektor.net:config/vim.git
|
||||
dest: '{{vim_config_dir}}'
|
||||
branch: master
|
||||
# clone: false
|
||||
update: true
|
||||
- win_owner:
|
||||
path: '{{vim_config_dir}}'
|
||||
user: Benie
|
||||
recurse: true
|
||||
|
||||
- assert:
|
||||
that: False
|
||||
|
||||
# - TODO: neovim set repo email
|
||||
# win_git_config:
|
||||
@@ -50,10 +41,18 @@
|
||||
src: '{{vim_config_dir}}/tasks.yaml'
|
||||
dest: vim_config_tasks.yaml
|
||||
flat: true
|
||||
changed_when: false
|
||||
|
||||
- when: config_repo_tasks.stat.exists
|
||||
include_tasks: vim_config_tasks.yaml
|
||||
|
||||
- name: remove fetched tasks
|
||||
file:
|
||||
state: absent
|
||||
path: vim_config_tasks.yaml
|
||||
changed_when: false
|
||||
delegate_to: localhost
|
||||
|
||||
- when: ansible_os_family != "Windows" and
|
||||
plugin_dir is defined and plugins is defined
|
||||
include_tasks: 'Unix-plugins.yaml'
|
||||
|
||||
@@ -5,13 +5,9 @@
|
||||
|
||||
- name: clone config repos
|
||||
win_git:
|
||||
repo: git@code.infektor.net:config/WindowsPowerShell.git
|
||||
repo: https://code.infektor.net/config/WindowsPowerShell.git
|
||||
dest: '{{powershell_config_dir}}'
|
||||
branch: master
|
||||
- win_owner:
|
||||
path: '{{powershell_config_dir}}'
|
||||
user: Benie
|
||||
recurse: true
|
||||
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
|
||||
Reference in New Issue
Block a user