Skip to content

Commit 20bb0ec

Browse files
authored
Merge pull request #82 from ansible-lockdown/devel
devel -> main
2 parents 8e36cf3 + f01507f commit 20bb0ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+226
-308
lines changed

.ansible-lint

-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ skip_list:
66
- 'schema'
77
- 'no-changed-when'
88
- 'var-spacing'
9-
- 'fqcn-builtins'
109
- 'experimental'
1110
- 'name[play]'
1211
- 'name[casing]'
1312
- 'name[template]'
14-
- 'fqcn[action]'
1513
- 'key-order[task]'
1614
- '204'
1715
- '305'

.config/.secrets.baseline

+4-13
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,11 @@
109109
{
110110
"path": "detect_secrets.filters.regex.should_exclude_file",
111111
"pattern": [
112-
".config/.gitleaks-report.json"
112+
".config/.gitleaks-report.json",
113+
"tasks/parse_etc_password.yml"
113114
]
114115
}
115116
],
116-
"results": {
117-
"tasks/parse_etc_password.yml": [
118-
{
119-
"type": "Secret Keyword",
120-
"filename": "tasks/parse_etc_password.yml",
121-
"hashed_secret": "2aaf9f2a51d8fe89e48cb9cc7d04a991ceb7f360",
122-
"is_verified": false,
123-
"line_number": 18
124-
}
125-
]
126-
},
127-
"generated_at": "2023-09-15T15:29:37Z"
117+
"results": {},
118+
"generated_at": "2023-09-20T16:18:57Z"
128119
}

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
*.yml linguist-detectable=true
44
*.ps1 linguist-detectable=true
55
*.j2 linguist-detectable=true
6-
*.md linguist-documentation
6+
*.md linguist-documentation

.github/workflows/github_vars.tfvars

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// github_actions variables
22
// Resourced in github_networks.tf
33
// Declared in variables.tf
4-
//
4+
//
55

66
namespace = "Ansible_Lockdown_GH_PR_Actions"
77
environment = "Ansible_Lockdown_GH_PR_Pipeline"

.yamllint

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ rules:
3030
trailing-spaces: enable
3131
truthy:
3232
allowed-values: ['true', 'false']
33-
check-keys: false
33+
check-keys: true

ChangeLog.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.4.0
4+
5+
workflow update
6+
linting updates
7+
import_tasks added file
8+
rule 3.1.2 logic update
9+
tidy up tags
10+
311
## 1.3.1
412

513
- issue 84 from ubuntu20 fixed vartmp

files/etc/apparmor.d/usr.bin.ssh

-10
This file was deleted.

handlers/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
name: exim4
2121
state: restarted
2222

23+
- name: Disable wireless adaptor
24+
ansible.builtin.shell: nmcli radio wifi off
25+
2326
- name: sysctl flush ipv4 route table
2427
ansible.posix.sysctl:
2528
name: net.ipv4.route.flush

library/goss.py

-147
This file was deleted.

tasks/main.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,22 @@
3131
- always
3232

3333
- name: Prelim Import Tasks
34-
ansible.builtin.import_tasks: prelim.yml
34+
ansible.builtin.import_tasks:
35+
file: prelim.yml
3536
tags:
3637
- always
3738

3839
- name: Pre Remediate Audit Task Import
39-
ansible.builtin.import_tasks: pre_remediation_audit.yml
40+
ansible.builtin.import_tasks:
41+
file: pre_remediation_audit.yml
4042
when:
4143
- run_audit
4244
tags:
4345
- run_audit
4446

4547
- name: Run Password Parsing
46-
ansible.builtin.import_tasks: parse_etc_password.yml
48+
ansible.builtin.import_tasks:
49+
file: parse_etc_password.yml
4750
when:
4851
- ubtu18cis_section5_patch or
4952
ubtu18cis_section6_patch
@@ -55,37 +58,43 @@
5558
- always
5659

5760
- name: Include section 1 patches
58-
ansible.builtin.import_tasks: section_1/main.yml
61+
ansible.builtin.import_tasks:
62+
file: section_1/main.yml
5963
when: ubtu18cis_section1_patch
6064
tags:
6165
- section1
6266

6367
- name: Include section 2 patches
64-
import_tasks: section_2/main.yml
68+
ansible.builtin.import_tasks:
69+
file: section_2/main.yml
6570
when: ubtu18cis_section2_patch
6671
tags:
6772
- section2
6873

6974
- name: Include section 3 patches
70-
ansible.builtin.import_tasks: section_3/main.yml
75+
ansible.builtin.import_tasks:
76+
file: section_3/main.yml
7177
when: ubtu18cis_section3_patch
7278
tags:
7379
- section3
7480

7581
- name: Include section 4 patches
76-
ansible.builtin.import_tasks: section_4/main.yml
82+
ansible.builtin.import_tasks:
83+
file: section_4/main.yml
7784
when: ubtu18cis_section4_patch
7885
tags:
7986
- section4
8087

8188
- name: Include section 5 patches
82-
ansible.builtin.import_tasks: section_5/main.yml
89+
ansible.builtin.import_tasks:
90+
file: section_5/main.yml
8391
when: ubtu18cis_section5_patch
8492
tags:
8593
- section5
8694

8795
- name: Include section 6 patches
88-
ansible.builtin.import_tasks: section_6/main.yml
96+
ansible.builtin.import_tasks:
97+
file: section_6/main.yml
8998
when: ubtu18cis_section6_patch | bool
9099
tags:
91100
- section6
@@ -113,7 +122,8 @@
113122
warn_control_id: 'Reboot Required'
114123

115124
- name: Post Remediation Task
116-
ansible.builtin.import_tasks: post_remediation_audit.yml
125+
ansible.builtin.import_tasks:
126+
file: post_remediation_audit.yml
117127
when:
118128
- run_audit
119129

tasks/pre_remediation_audit.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22

33
- name: Pre Audit | Setup the audit
4-
ansible.builtin.include_tasks: LE_audit_setup.yml
4+
ansible.builtin.include_tasks:
5+
file: LE_audit_setup.yml
56
when:
67
- setup_audit
78
tags:

0 commit comments

Comments
 (0)