Skip to content

Commit

Permalink
Merge pull request #17 from sbaerlocher/develop/0.0.9
Browse files Browse the repository at this point in the history
fix defender
  • Loading branch information
sbaerlocher authored Jun 22, 2021
2 parents 935673a + 7577ae0 commit 84f6e0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## master

## 0.0.9

### Fixed

- Fixed module defender_exclusion

## 0.0.8

### Added
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: 'sbaerlocher'
name: 'windows'
version: 0.0.8
version: 0.0.9
readme: README.md
authors:
- 'Simon Baerlocher (https://sbaerlocher.ch)'
Expand Down
2 changes: 0 additions & 2 deletions roles/defender/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
# defaults file for defender

# disables or enables Windows defender on the Windows system.
defender_disable: fales
# example
# defender_exclusion:
# - path:
4 changes: 0 additions & 4 deletions roles/defender/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
# tasks file for defender

- name: 'Disable or Enable Defender'
win_shell: 'Set-MpPreference -DisableRealtimeMonitoring ${{ defender_disable }}'
when: ansible_distribution_major_version is version('6', '>')

- name: 'Exclude from Scanning'
win_defender_exclusion:
list: '{{ item.value }}'
Expand Down

0 comments on commit 84f6e0b

Please sign in to comment.