Skip to content

Commit 0ac56e4

Browse files
committed
Merge branch 'master' into pwhistory
Signed-off-by: Martin Schurz <[email protected]>
2 parents 659e5ad + 05bc809 commit 0ac56e4

File tree

20 files changed

+100
-5
lines changed

20 files changed

+100
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# Changelog
22

3-
## [7.3.1](https://github.com/dev-sec/ansible-collection-hardening/tree/7.3.1) (2021-03-16)
3+
## [7.4.0](https://github.com/dev-sec/ansible-collection-hardening/tree/7.4.0) (2021-03-23)
44

5-
[Full Changelog](https://github.com/dev-sec/ansible-collection-hardening/compare/7.3.0...7.3.1)
5+
[Full Changelog](https://github.com/dev-sec/ansible-collection-hardening/compare/7.3.0...7.4.0)
6+
7+
**Closed issues:**
8+
9+
- Errors in packer build for vagrant builder [\#244](https://github.com/dev-sec/ansible-collection-hardening/issues/244)
610

711
**Merged pull requests:**
812

13+
- Remove comments from PAM config file, but keep it in the template [\#430](https://github.com/dev-sec/ansible-collection-hardening/pull/430) ([joubbi](https://github.com/joubbi))
14+
- add support for using a proxy to test with molecule [\#429](https://github.com/dev-sec/ansible-collection-hardening/pull/429) ([rndmh3ro](https://github.com/rndmh3ro))
15+
- Harden user home dirs [\#428](https://github.com/dev-sec/ansible-collection-hardening/pull/428) ([rndmh3ro](https://github.com/rndmh3ro))
916
- Improve Documentation for sysctl defaults [\#418](https://github.com/dev-sec/ansible-collection-hardening/pull/418) ([joubbi](https://github.com/joubbi))
1017

1118
## [7.3.0](https://github.com/dev-sec/ansible-collection-hardening/tree/7.3.0) (2021-03-16)

molecule/mysql_hardening/converge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: wrapper playbook for kitchen testing "ansible-mysql-hardening"
33
hosts: all
44
become: true
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
tasks:
610
- name: Determine required MySQL Python libraries (Ubuntu Focal Fossa ++)
711
set_fact:

molecule/mysql_hardening/molecule.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ platforms:
2020
container: docker
2121
security_opts:
2222
- apparmor=unconfined
23+
env:
24+
http_proxy: "${http_proxy}"
25+
https_proxy: "${https_proxy}"
26+
no_proxy: "${no_proxy}"
27+
container: docker
2328
provisioner:
2429
name: ansible
2530
config_options:

molecule/mysql_hardening/prepare.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
- name: wrapper playbook for kitchen testing "ansible-mysql-hardening"
44
hosts: all
55
become: true
6+
environment:
7+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
8+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
9+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
610
tasks:
711
- name: Run the equivalent of "apt-get update && apt-get upgrade"
812
apt:

molecule/mysql_hardening/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: Verify
33
hosts: all
44
become: true
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
roles:
610
- geerlingguy.git
711
tasks:

molecule/nginx_hardening/converge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: wrapper playbook for kitchen testing "ansible-nginx-hardening" with custom settings
33
become: true
44
hosts: all
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
vars:
610
- nginx_ppa_use: true
711
- nginx_ppa_version: stable

molecule/nginx_hardening/molecule.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ platforms:
2121
capabilities:
2222
- SYS_ADMIN
2323
tty: true
24-
environment:
24+
env:
25+
http_proxy: "${http_proxy}"
26+
https_proxy: "${https_proxy}"
27+
no_proxy: "${no_proxy}"
2528
container: docker
2629
provisioner:
2730
name: ansible

molecule/nginx_hardening/prepare.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: prepare playbook for kitchen testing "ansible-nginx-hardening" with custom settings
33
become: true
44
hosts: all
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
tasks:
610
- name: install required tools on SuSE
711
zypper:

molecule/nginx_hardening/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: Verify
33
hosts: all
44
become: true
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
roles:
610
- geerlingguy.git
711
tasks:

molecule/os_hardening/converge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- name: wrapper playbook for kitchen testing "ansible-os-hardening" with custom vars for testing
33
hosts: all
44
become: true
5+
environment:
6+
http_proxy: "{{ lookup('env', 'http_proxy') | default(omit) }}"
7+
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
8+
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
59
collections:
610
- devsec.hardening
711
tasks:

0 commit comments

Comments
 (0)