Make tasks.yaml support Windows

This commit is contained in:
Kenneth Benzie 2022-04-28 23:01:47 +01:00
parent 2d898122c3
commit b75ee5d607

View File

@ -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}}'