Compare commits
14 Commits
567ed28def
...
3008424a13
Author | SHA1 | Date | |
---|---|---|---|
3008424a13 | |||
5004779045 | |||
3c55848bc8 | |||
1447a04ab4 | |||
a624be3ac0 | |||
282d38579c | |||
3cdaa8abd6 | |||
323796eb24 | |||
d9f7d0513a | |||
d3e4a81b48 | |||
45b0780f48 | |||
f9a090c798 | |||
6089961e36 | |||
471a358321 |
@ -1,29 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- import_playbook: WindowsCLI.yaml
|
||||||
- hosts: windows
|
- hosts: windows
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/environment.yaml
|
- vars/environment.yaml
|
||||||
roles:
|
roles:
|
||||||
- role: python
|
|
||||||
- role: git
|
|
||||||
- role: powershell
|
|
||||||
- role: neovim
|
|
||||||
- role: system-info
|
|
||||||
|
|
||||||
- role: ag
|
|
||||||
- role: bat
|
|
||||||
- role: curl
|
|
||||||
- role: fd
|
|
||||||
- role: fzf
|
|
||||||
- role: gh
|
|
||||||
- role: glab
|
|
||||||
- role: jq
|
|
||||||
- role: ripgrep
|
|
||||||
- role: tree
|
|
||||||
- role: yq
|
|
||||||
|
|
||||||
- role: llvm
|
|
||||||
- role: nodejs
|
|
||||||
|
|
||||||
- role: 1password
|
- role: 1password
|
||||||
- role: autohotkey
|
- role: autohotkey
|
||||||
- role: cider
|
- role: cider
|
||||||
@ -33,3 +13,4 @@
|
|||||||
- role: obsidian
|
- role: obsidian
|
||||||
- role: powertoys
|
- role: powertoys
|
||||||
- role: windows-terminal
|
- role: windows-terminal
|
||||||
|
# TODO: wezterm
|
||||||
|
26
playbooks/WindowsCLI.yaml
Normal file
26
playbooks/WindowsCLI.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
- hosts: windows
|
||||||
|
vars_files:
|
||||||
|
- vars/environment.yaml
|
||||||
|
roles:
|
||||||
|
- role: scoop
|
||||||
|
- role: python
|
||||||
|
- role: git
|
||||||
|
- role: powershell
|
||||||
|
- role: neovim
|
||||||
|
- role: system-info
|
||||||
|
|
||||||
|
- role: ag
|
||||||
|
- role: bat
|
||||||
|
- role: curl
|
||||||
|
- role: fd
|
||||||
|
- role: fzf
|
||||||
|
- role: gh
|
||||||
|
- role: glab
|
||||||
|
- role: jq
|
||||||
|
- role: ripgrep
|
||||||
|
- role: tree
|
||||||
|
- role: yq
|
||||||
|
|
||||||
|
- role: llvm
|
||||||
|
- role: nodejs
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remote chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: ag
|
name: ag
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: ag
|
||||||
|
state: present
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remote chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: Bat
|
name: Bat
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: bat
|
||||||
|
state: present
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remove chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: curl
|
name: curl
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: curl
|
||||||
|
state: present
|
||||||
|
@ -19,8 +19,14 @@
|
|||||||
name: fd
|
name: fd
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: install Chocolatey package
|
- name: remove chocolatey package
|
||||||
when: ansible_os_family == 'Windows'
|
when: ansible_os_family == 'Windows'
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: fd
|
name: fd
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
when: ansible_os_family == 'Windows'
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: fd
|
||||||
|
state: present
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remove chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: fzf
|
name: fzf
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: fzf
|
||||||
|
state: present
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remove chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: gh
|
name: gh
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: gh
|
||||||
|
state: present
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remove chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
|
name:
|
||||||
|
- glab
|
||||||
|
- glab.portable
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
name: glab
|
name: glab
|
||||||
state: latest
|
state: present
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remote chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: jq
|
name: jq
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: jq
|
||||||
|
state: present
|
||||||
|
@ -19,8 +19,13 @@
|
|||||||
name: ripgrep
|
name: ripgrep
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: install Chocolatey package
|
- name: remove chocolatey package
|
||||||
when: ansible_os_family == 'Windows'
|
when: ansible_os_family == 'Windows'
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: ripgrep
|
name: ripgrep
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: ripgrep
|
||||||
|
state: present
|
||||||
|
25
roles/scoop/tasks/main.yaml
Normal file
25
roles/scoop/tasks/main.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
- name: detect if scoop is installed
|
||||||
|
win_command: where.exe scoop
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
register: scoop_result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that: scoop_result.rc == 0
|
||||||
|
fail_msg: Scoop is not installed
|
||||||
|
|
||||||
|
- name: add extras bucket
|
||||||
|
community.windows.win_scoop_bucket:
|
||||||
|
name: extras
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: install completions
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: scoop-completion
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- win_owner:
|
||||||
|
path: '{{ansible_env.LOCALAPPDATA}}/Scoop/buckets/extras'
|
||||||
|
user: '{{ansible_env.USERNAME}}'
|
||||||
|
recurse: true
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: remove chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: yq
|
name: yq
|
||||||
state: latest
|
state: absent
|
||||||
|
|
||||||
|
- name: install scoop package
|
||||||
|
community.windows.win_scoop:
|
||||||
|
name: yq
|
||||||
|
state: present
|
||||||
|
Loading…
x
Reference in New Issue
Block a user