diff --git a/.gitignore b/.gitignore index b008bae..e91eb9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ *.retry + +*.swp + .DS_Store hosts diff --git a/playbook/windows/InstallDotNetCore.yml b/playbook/windows/InstallDotNetCore.yml new file mode 100644 index 0000000..4d8f61c --- /dev/null +++ b/playbook/windows/InstallDotNetCore.yml @@ -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- diff --git a/playbook/windows/InstallSecurityUpdates.yml b/playbook/windows/InstallSecurityUpdates.yml index 233f64e..80b85aa 100644 --- a/playbook/windows/InstallSecurityUpdates.yml +++ b/playbook/windows/InstallSecurityUpdates.yml @@ -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 }}" diff --git a/playbook/windows/choco/installBrave.yml b/playbook/windows/choco/installBrave.yml new file mode 100644 index 0000000..21a682a --- /dev/null +++ b/playbook/windows/choco/installBrave.yml @@ -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 }}" diff --git a/playbook/windows/choco/installChoco.yml b/playbook/windows/choco/installChoco.yml new file mode 100644 index 0000000..3d10f40 --- /dev/null +++ b/playbook/windows/choco/installChoco.yml @@ -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 + diff --git a/playbook/windows/getProductInfo.yml b/playbook/windows/getProductInfo.yml new file mode 100644 index 0000000..f9e84b4 --- /dev/null +++ b/playbook/windows/getProductInfo.yml @@ -0,0 +1,11 @@ + +- name: Get Windows info + hosts: windows + + tasks: + - name: get stuff + win_product_facts: + register: output + + - debug: msg="{{ output }}" + diff --git a/playbook/windows/getSystemInfo.yml b/playbook/windows/getSystemInfo.yml new file mode 100644 index 0000000..f33d312 --- /dev/null +++ b/playbook/windows/getSystemInfo.yml @@ -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 }}" + + +