install packages via scoop

This commit is contained in:
L3D 2024-01-14 22:23:13 +01:00
parent 0fda6433f8
commit dfbf9e515a
Signed by: l3d
GPG key ID: CD08445BFF4313D1
10 changed files with 49 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,5 +1,6 @@
# Venv
ansible/
ansible/**
# ---> Vim
# Swap
[._]*.s[a-v][a-z]

12
.gitmodules vendored
View file

@ -7,3 +7,15 @@
[submodule "roles/win_activating"]
path = roles/win_activating
url = https://git.l3d.ch/voc/win_ansible_role_activating.git
[submodule "collections/ansible_collections/ansible/windows"]
path = collections/ansible_collections/ansible/windows
url = https://github.com/ansible-collections/community.windows
[submodule "collections/ansible_collections/chocolatey"]
path = collections/ansible_collections/chocolatey
url = https://github.com/chocolatey/chocolatey-ansible.git
[submodule "collections/ansible_collections/community/windows"]
path = collections/ansible_collections/community/windows
url = https://github.com/ansible-collections/community.windows.git
[submodule "collections/ansible_collections/community/general"]
path = collections/ansible_collections/community/general
url = https://github.com/ansible-collections/community.general.git

@ -0,0 +1 @@
Subproject commit a03f6d23be11497282964e9dffbdffe78c9a28dd

@ -0,0 +1 @@
Subproject commit 9bdc0d40437a7dc7f0181af42da7e35bbcfcae4a

@ -0,0 +1 @@
Subproject commit 32ec751996e1b0505cfef7c511c48d4d81edb091

@ -0,0 +1 @@
Subproject commit a03f6d23be11497282964e9dffbdffe78c9a28dd

View file

@ -0,0 +1,8 @@
---
- name: Install scoop
ansible.builtin.include_tasks:
file: scoop.yml
- name: Install gopass and requirements using scoop
ansible.builtin.include_tasks:
file: packages.yml

View file

@ -0,0 +1,17 @@
- name: Add some scoop buckets
community.windows.win_scoop_bucket:
name: '{{ item }}'
state: present
with_items:
- extras
- main
- name: Install gopass and Requirements via scoop
community.windows.win_scoop:
state: present
name: '{{ item }}'
with_items:
- 'gpg4win'
- 'git'
- 'gopass'
- 'gopass-jsonapi'

View file

@ -0,0 +1,5 @@
- name: install scoop
ansible.windows.win_powershell:
script: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

View file

@ -10,3 +10,4 @@
roles:
- {role: win_activating, tags: zeroconf}
- {role: win_zeroconf, tags: zeroconf}
- {role: win_gopass, tags: gopass}