-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscoop.tasks
68 lines (68 loc) · 2.17 KB
/
scoop.tasks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
# upgrade to shovel, https://github.com/Ash258/Scoop-Core
# use ACooper81 for vs-community, https://github.com/ACooper81/scoop-apps
- hosts: all
vars:
TYPE: scoop
INSTANCE: main
tasks:
- name: get scoop installer
ansible.windows.win_powershell:
script: |
irm get.scoop.sh -outfile 'install-scoop.ps1'
when: get_scoop|default(True) == True
- name: install scoop
ansible.windows.win_powershell:
script: |
#$oldPolicy = Get-ExecutionPolicy -Scope CurrentUser
#Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
#.\install-scoop.ps1 -ScoopDir 'D:\utils\scoop'
#.\install-scoop.ps1 -ScoopDir $env:USERPROFILE\scoop
.\install-scoop.ps1
#Set-ExecutionPolicy $oldPolicy -Scope CurrentUser -Force
when: install_scoop|default(True) == True
- name: add shovel deps
ansible.windows.win_scoop:
global: True
script: |
- 7zip
- git
- sudo
- dark
- innounp
- lessmsi
- aria2
- name: set shovel repo
ansible.windows.win_powershell:
script: |
# shovel
scoop config SCOOP_REPO 'https://github.com/Ash258/Scoop-Core'
- name: add ACooper81 bucket
community.windows.win_scoop_bucket:
name: ACooper81
repo: 'https://github.com/ACooper81/scoop-apps'
# probably not needed
- name: update scoop
ansible.windows.win_powershell:
script: |
scoop update
scoop status
scoop checkup
- name: install scoop apps
community.windows.win_scoop:
name:
- nodejs
- cmake
- name: install acooper81 vs-studio-community
community.windows.win_scoop:
name:
- ACooper81/MicrosoftVisualStudioCommunity2022-Install
- name: "uninstall (typically skipped)"
ansible.windows.win_powershell:
script: |
#scoop config rm root_path
#scoop config rm scoop_repo
#scoop config rm global_path
rm $env:USERPROFILE\.config\scoop
rm $env:USERPROFILE\scoop
when: scoop_uninstall|default(False) == True