-
Notifications
You must be signed in to change notification settings - Fork 171
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 #265 from ansible-lockdown/devel
Release to main
- Loading branch information
Showing
18 changed files
with
297 additions
and
38 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
parseable: true | ||
quiet: true | ||
skip_list: | ||
|
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,32 +1,31 @@ | ||
--- | ||
ignore: | | ||
tests/ | ||
molecule/ | ||
.github/ | ||
.gitlab-ci.yml | ||
*molecule.yml | ||
|
||
extends: default | ||
|
||
ignore: | | ||
tests/ | ||
molecule/ | ||
.github/ | ||
.gitlab-ci.yml | ||
*molecule.yml | ||
|
||
rules: | ||
indentation: | ||
# Requiring 4 space indentation | ||
spaces: 4 | ||
# Requiring consistent indentation within a file, either indented or not | ||
indent-sequences: consistent | ||
#truthy: disable | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable | ||
key-duplicates: enable | ||
new-line-at-end-of-file: enable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: enable | ||
truthy: | ||
allowed-values: ['true', 'false'] | ||
check-keys: true | ||
indentation: | ||
# Requiring 4 space indentation | ||
spaces: 4 | ||
# Requiring consistent indentation within a file, either indented or not | ||
indent-sequences: consistent | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable | ||
key-duplicates: enable | ||
new-line-at-end-of-file: enable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: enable | ||
truthy: | ||
allowed-values: ['true', 'false'] | ||
check-keys: 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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# This is a playbook to test the tasks. | ||
- name: Converge | ||
hosts: all | ||
gather_facts: true | ||
|
||
vars: | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
ansible_user: root | ||
system_is_container: true | ||
rhel8cis_selinux_disable: true | ||
rhel8cis_rule_5_3_4: false | ||
rhel8cis_rule_1_1_10: false | ||
rhel8cis_rsyslog_ansiblemanaged: false | ||
rhel8cis_rule_3_4_1_3: false | ||
rhel8cis_rule_3_4_1_4: false | ||
rhel8cis_rule_4_1_1_1: false | ||
rhel8cis_rule_4_1_1_2: false | ||
rhel8cis_rule_4_1_1_3: false | ||
rhel8cis_rule_4_1_1_4: false | ||
rhel8cis_rule_4_2_1_2: false | ||
rhel8cis_rule_4_2_1_4: false | ||
rhel8cis_rule_5_1_1: false | ||
|
||
pre_tasks: | ||
tasks: | ||
- name: "Include tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
|
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,34 @@ | ||
--- | ||
# Molecule configuration | ||
# https://molecule.readthedocs.io/en/latest/ | ||
|
||
driver: | ||
name: docker | ||
|
||
platforms: | ||
- name: ubi8 | ||
image: registry.access.redhat.com/ubi8/ubi-init | ||
pre_build_image: true | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
privileged: true | ||
command: "/usr/sbin/init" | ||
capabilities: | ||
- SYS_ADMIN | ||
|
||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
interpreter_python: auto_silent | ||
callbacks_enabled: profile_tasks, timer | ||
|
||
lint: | | ||
set -e | ||
yamllint . | ||
ansible-lint | ||
flake8 | ||
verifier: | ||
name: ansible | ||
|
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,13 @@ | ||
--- | ||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
|
||
vars: | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
|
||
tasks: | ||
- name: "Include verify tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
tasks_from: verify |
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,18 @@ | ||
--- | ||
# This is a playbook to test the tasks. | ||
- name: Converge | ||
hosts: all | ||
become: true | ||
gather_facts: true | ||
|
||
vars: | ||
ansible_user: "{{ lookup('env', 'USER') }}" | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
rhel8cis_rule_5_3_4: false | ||
|
||
pre_tasks: | ||
tasks: | ||
- name: "Include tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
|
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,30 @@ | ||
--- | ||
# Molecule configuration | ||
# https://molecule.readthedocs.io/en/latest/ | ||
|
||
driver: | ||
name: delegated | ||
options: | ||
managed: false | ||
ansible_connection_options: | ||
ansible_connection: local | ||
platforms: | ||
- name: localhost | ||
|
||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
interpreter_python: auto_silent | ||
stdout_callback: yaml | ||
callbacks_enabled: profile_tasks, timer | ||
|
||
lint: | | ||
set -e | ||
yamllint . | ||
ansible-lint | ||
flake8 | ||
verifier: | ||
name: ansible | ||
|
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,14 @@ | ||
--- | ||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
become: true | ||
|
||
vars: | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
|
||
tasks: | ||
- name: "Include verify tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
tasks_from: verify |
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,27 @@ | ||
--- | ||
# This is a playbook to test the tasks. | ||
- name: Converge | ||
hosts: all | ||
become: true | ||
gather_facts: true | ||
|
||
vars: | ||
ansible_user: "{{ lookup('env', 'USER') }}" | ||
system_is_container: true | ||
rhel8cis_selinux_disable: true | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
rhel8cis_rule_5_3_4: false | ||
rhel8cis_rule_1_1_10: false | ||
rhel8cis_rsyslog_ansiblemanaged: false | ||
rhel8cis_rule_3_4_1_3: false | ||
rhel8cis_rule_3_4_1_4: false | ||
rhel8cis_rule_4_2_1_2: false | ||
rhel8cis_rule_4_2_1_4: false | ||
rhel8cis_rule_5_1_1: false | ||
|
||
pre_tasks: | ||
tasks: | ||
- name: "Include tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
|
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,29 @@ | ||
--- | ||
# Molecule configuration | ||
# https://molecule.readthedocs.io/en/latest/ | ||
|
||
driver: | ||
name: delegated | ||
options: | ||
managed: false | ||
ansible_connection_options: | ||
ansible_connection: local | ||
platforms: | ||
- name: localhost | ||
|
||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
interpreter_python: auto_silent | ||
callbacks_enabled: profile_tasks, timer | ||
|
||
lint: | | ||
set -e | ||
yamllint . | ||
ansible-lint | ||
flake8 | ||
verifier: | ||
name: ansible | ||
|
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,13 @@ | ||
--- | ||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
|
||
vars: | ||
role_name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" | ||
|
||
tasks: | ||
- name: "Include verify tasks" | ||
ansible.builtin.include_role: | ||
name: "{{ role_name }}" | ||
tasks_from: verify |
Oops, something went wrong.