Skip to content

Commit

Permalink
Merge pull request #18 from tomwerneruk/al2-version-fix
Browse files Browse the repository at this point in the history
Fix default for OS version format change
  • Loading branch information
gnuru authored Nov 17, 2021
2 parents 29fd2d7 + fc56d52 commit af9c5ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

0 comments on commit af9c5ed

Please sign in to comment.