windows updates can be parsed
Figured out how to get the returned values back. Getting into choco now.
This commit is contained in:
parent
42f7a9f79e
commit
d43d21157c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
*.retry
|
||||
|
||||
*.swp
|
||||
|
||||
.DS_Store
|
||||
hosts
|
||||
|
11
playbook/windows/InstallDotNetCore.yml
Normal file
11
playbook/windows/InstallDotNetCore.yml
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
- name: Install .Net Core Runtime
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: Download binary
|
||||
win_get_url:
|
||||
-
|
||||
|
||||
|
||||
https://dotnet.microsoft.com/download/thank-you/dotnet-
|
@ -10,11 +10,8 @@
|
||||
- SecurityUpdates
|
||||
- CriticalUpdates
|
||||
- UpdateRollups
|
||||
#log_path: C:\ansible-Updates.txt
|
||||
register: updates
|
||||
register: output
|
||||
|
||||
- name: return report
|
||||
debug:
|
||||
var: updates
|
||||
- debug: msg="{{ output }}"
|
||||
|
||||
|
||||
|
12
playbook/windows/choco/installBrave.yml
Normal file
12
playbook/windows/choco/installBrave.yml
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
- name: Install Brave Browser from Choco
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: Install Package
|
||||
win_chocolatey:
|
||||
name: brave
|
||||
state: present
|
||||
register: output
|
||||
|
||||
- debug: msg="{{ output }}"
|
17
playbook/windows/choco/installChoco.yml
Normal file
17
playbook/windows/choco/installChoco.yml
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
- name: Install Choco
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: Install Choco
|
||||
win_chocolatey:
|
||||
name: chocolatey
|
||||
source: internal_repo
|
||||
|
||||
# This was added because of breaking changes added to choco that conflicted with ansible
|
||||
# https://github.com/ansible/ansible/pull/53841
|
||||
- name: Disable EnhancedExitCodes
|
||||
win_chocolatey_feature:
|
||||
name: useEnhancedExitCodes
|
||||
state: disabled
|
||||
|
11
playbook/windows/getProductInfo.yml
Normal file
11
playbook/windows/getProductInfo.yml
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
- name: Get Windows info
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: get stuff
|
||||
win_product_facts:
|
||||
register: output
|
||||
|
||||
- debug: msg="{{ output }}"
|
||||
|
16
playbook/windows/getSystemInfo.yml
Normal file
16
playbook/windows/getSystemInfo.yml
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
# This is a testing script to see what box you are connected to.
|
||||
# We will run a shell command to get our output.
|
||||
|
||||
- name: Get SystemInfo
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: Run SystemInfo
|
||||
win_shell: systeminfo
|
||||
register: sysinfo
|
||||
|
||||
- debug: msg="{{ sysinfo.stdout_lines }}"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user