-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ansible-lockdown/devel
Linting and Issue fixes
- Loading branch information
Showing
15 changed files
with
4,111 additions
and
3,869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
parseable: true | ||
quiet: true | ||
skip_list: | ||
- '204' | ||
- '305' | ||
- '303' | ||
- '403' | ||
- '306' | ||
- '602' | ||
use_default_rules: true | ||
verbosity: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.env | ||
*.log | ||
*.retry | ||
.cache | ||
.vagrant | ||
tests/*redhat-subscription | ||
tests/Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
ignore: | | ||
tests/ | ||
molecule/ | ||
.gitlab-ci.yml | ||
*molecule.yml | ||
|
||
extends: default | ||
|
||
rules: | ||
indentation: | ||
spaces: 4 | ||
truthy: disable | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,65 @@ | ||
Windows Server 2016 CIS | ||
========= | ||
![Release](https://img.shields.io/github/v/release/ansible-lockdown/Windows-2016-CIS?style=plastic) | ||
|
||
Configure a Windows Server 2016 system to be [CIS](https://www.cisecurity.org/cis-benchmarks/) v1.2.0 compliant. There are some intrusive tasks that have a toggle in defaults main.yml to disable to automated fix | ||
|
||
Caution(s) | ||
------- | ||
This role **will make changes to the system** that could break things. This is not an auditing tool but rather a remediation tool to be used after an audit has been conducted. | ||
|
||
This role was developed against a clean install of the Operating System. If you are implementing to an existing system please review this role for any site specific changes that are needed. | ||
|
||
To use release version please point to main branch | ||
Based on [CIS Windows Server 2016 Benchmark ](https://community.cisecurity.org/collab/public/index.php). | ||
|
||
Documentation | ||
------------- | ||
[Getting Started](https://www.lockdownenterprise.com/docs/getting-started-with-lockdown)<br> | ||
[Customizing Roles](https://www.lockdownenterprise.com/docs/customizing-lockdown-enterprise)<br> | ||
[Per-Host Configuration](https://www.lockdownenterprise.com/docs/per-host-lockdown-enterprise-configuration)<br> | ||
[Getting the Most Out of the Role](https://www.lockdownenterprise.com/docs/get-the-most-out-of-lockdown-enterprise)<br> | ||
[Wiki](https://github.com/ansible-lockdown/Windows-2016-CIS/wiki)<br> | ||
[Repo GitHub Page](https://ansible-lockdown.github.io/Windows-2016-CIS/)<br> | ||
|
||
Configure a Windows Server 2016 system to be CIS compliant. | ||
|
||
This role is based on CIS Microsoft Windows Server 2016 RTM: [Version 1.2.0 Rel 1607 released on May 27, 2020] (https://learn.cisecurity.org/l/799323/2020-07-10/zx1v). | ||
|
||
Requirements | ||
------------ | ||
|
||
Windows Server 2016 - Other versions are not supported. | ||
**General:** | ||
- Basic knowledge of Ansible, below are some links to the Ansible documentation to help get started if you are unfamiliar with Ansible | ||
- [Main Ansible documentation page](https://docs.ansible.com) | ||
- [Ansible Getting Started](https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html) | ||
- [Tower User Guide](https://docs.ansible.com/ansible-tower/latest/html/userguide/index.html) | ||
- [Ansible Community Info](https://docs.ansible.com/ansible/latest/community/index.html) | ||
- Functioning Ansible and/or Tower Installed, configured, and running. This includes all of the base Ansible/Tower configurations, needed packages installed, and infrastructure setup. | ||
- Please read through the tasks in this role to gain an understanding of what each control is doing. Some of the tasks are disruptive and can have unintended consiquences in a live production system. Also familiarize yourself with the variables in the defaults/main.yml file or the [Main Variables Wiki Page](https://github.com/ansible-lockdown/Windows-2016-CIS/wiki/Main-Variables). | ||
|
||
**Technical Dependencies:** | ||
- Running Ansible/Tower setup (this role is tested against Ansible version 2.9.1 and newer) | ||
- Python3 Ansible run environment | ||
|
||
Role Variables | ||
-------------- | ||
|
||
This role is designed that the end user should not have to edit the tasks themselves. All customizing should be done via the defaults/main.yml file or with extra vars within the project, job, workflow, etc. These variables can be found [here](https://github.com/ansible-lockdown/Windows-2016-CIS/wiki/Main-Variables) in the Main Variables Wiki page. All variables are listed there along with descriptions. | ||
|
||
Branches | ||
-------- | ||
|
||
- **devel** - This is the default branch and the working development branch. Community pull requests will pull into this branch | ||
- **main** - This is the release branch | ||
- **reports** - This is a protected branch for our scoring reports, no code should ever go here | ||
- **gh-pages** - This is the github pages branch | ||
- **all other branches** - Individual community member branches | ||
|
||
Community Contribution | ||
---------------------- | ||
|
||
We encourage you (the community) to contribute to this role. Please read the rules below. | ||
|
||
- Your work is done in your own individual branch. Make sure to Signed-off and GPG sign all commits you intend to merge. | ||
- All community Pull Requests are pulled into the devel branch | ||
- Pull Requests into devel will confirm your commits have a GPG signature, Signed-off, and a functional test before being approved | ||
- Once your changes are merged and a more detailed review is complete, an authorized member will merge your changes into the main branch for a new release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
|
||
roles: | ||
- role: "{{ playbook_dir }}" | ||
system_is_container: "{{ is_container | default(false) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.