Compare commits

...

14 Commits

13 changed files with 126 additions and 41 deletions

View File

@ -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
View 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View 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

View File

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