From 6c17d8d107595b6708584b2aa59fdb30ccad9c58 Mon Sep 17 00:00:00 2001 From: Tom Werner Date: Tue, 17 Nov 2020 00:06:11 +0000 Subject: [PATCH 1/2] Fix default for OS version format change and ansible install notes to readme --- README.md | 4 ++++ defaults/main.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 57e7ad6a..41e2dd21 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,10 @@ It should work with any point release within Ansible 2.6 major release, and ther Vagrant version ```2.2.4``` was used during the development & testing of Amazon Linux 2 revision of the role. +This role contains jinja template actions that are only compatiable with jinja2 >= 2.8. Unfortunately Amazon Linux 2 (and upstream) only ship with 2.7. Python 2 is EOL and el7 is sunsetting, there will not be an updated rpm for this. Therefore, getting this role to run succesfully will require something you really shouldn't do - update a Python package installed by RPM using pip. + +You bend it you fix it, ```sudo pip install -U jinja2``` will bring jinja up to a compatiable version. + Testing ------- diff --git a/defaults/main.yml b/defaults/main.yml index bed9d4d9..d2d94c62 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -21,7 +21,7 @@ cis_level_2_exclusions: [] fail_on_manual_remediation_actions: false # True or false. cis_target_os_distribution: "Amazon" -cis_target_os_versions: [ "(Karoo)" ] +cis_target_os_versions: [ "(Karoo)", "2" ] cis_modprobe_conf_filename: "/etc/modprobe.d/CIS.conf" cis_grub_bootloader_filename: "/boot/grub2/grub.cfg" From fc56d52ea91ae0c50b6c269f05d75af3aa0528ff Mon Sep 17 00:00:00 2001 From: Tom Werner Date: Sat, 19 Dec 2020 19:58:36 +0000 Subject: [PATCH 2/2] update meta version for new AL2 version --- meta/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/main.yml b/meta/main.yml index 64d917f3..210bd65b 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -8,6 +8,6 @@ galaxy_info: min_ansible_version: 2.5 platforms: - name: Amazon - versions: [ "(Karoo)" ] + versions: [ "(Karoo)", "2"] galaxy_tags: ['CIS','Linux','Amazon','hardening','benchmark','PCIDSS','compliance'] dependencies: []