Make tasks.yaml support Windows
This commit is contained in:
parent
2d898122c3
commit
b75ee5d607
10
tasks.yaml
10
tasks.yaml
@ -1,10 +1,18 @@
|
||||
---
|
||||
- name: git clone private config repository
|
||||
when: ansible_os_family != "Windows"
|
||||
git:
|
||||
repo: git@code.infektor.net:benie/config.git
|
||||
dest: ~/.config/private
|
||||
version: master
|
||||
|
||||
- name: git clone private config repository
|
||||
when: ansible_os_family == "Windows"
|
||||
git:
|
||||
repo: git@code.infektor.net:benie/config.git
|
||||
dest: '{{ansible_env.USERPROFILE}}/.config/private'
|
||||
version: master
|
||||
|
||||
- name: git install macOS packages
|
||||
when: ansible_os_family == "Darwin"
|
||||
homebrew:
|
||||
@ -12,12 +20,14 @@
|
||||
state: latest
|
||||
|
||||
- name: git intall pip packages
|
||||
when: ansible_os_family != "Windows"
|
||||
pip:
|
||||
name: git+https://github.com/kbenzie/git-issue.git
|
||||
extra_args: --user
|
||||
state: latest
|
||||
|
||||
- name: git create symbolic links
|
||||
when: ansible_os_family != "Windows"
|
||||
file:
|
||||
state: link
|
||||
src: '{{item.src}}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user