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
|
||||
vars_files:
|
||||
- vars/environment.yaml
|
||||
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: autohotkey
|
||||
- role: cider
|
||||
@ -33,3 +13,4 @@
|
||||
- role: obsidian
|
||||
- role: powertoys
|
||||
- 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:
|
||||
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:
|
||||
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:
|
||||
name: curl
|
||||
state: latest
|
||||
state: absent
|
||||
|
||||
- name: install scoop package
|
||||
community.windows.win_scoop:
|
||||
name: curl
|
||||
state: present
|
||||
|
@ -19,8 +19,14 @@
|
||||
name: fd
|
||||
state: latest
|
||||
|
||||
- name: install Chocolatey package
|
||||
- name: remove chocolatey package
|
||||
when: ansible_os_family == 'Windows'
|
||||
win_chocolatey:
|
||||
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:
|
||||
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:
|
||||
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:
|
||||
name:
|
||||
- glab
|
||||
- glab.portable
|
||||
state: absent
|
||||
|
||||
- name: install scoop package
|
||||
community.windows.win_scoop:
|
||||
name: glab
|
||||
state: latest
|
||||
state: present
|
||||
|
@ -1,5 +1,10 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
- name: remote chocolatey package
|
||||
win_chocolatey:
|
||||
name: jq
|
||||
state: latest
|
||||
state: absent
|
||||
|
||||
- name: install scoop package
|
||||
community.windows.win_scoop:
|
||||
name: jq
|
||||
state: present
|
||||
|
@ -19,8 +19,13 @@
|
||||
name: ripgrep
|
||||
state: latest
|
||||
|
||||
- name: install Chocolatey package
|
||||
- name: remove chocolatey package
|
||||
when: ansible_os_family == 'Windows'
|
||||
win_chocolatey:
|
||||
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:
|
||||
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