Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov db5c6f2d66 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I1920cd05ac5b4d32ad12bce42d9161a568f288b6
2023-07-17 14:25:21 +02:00
Jonathan Rosser 480dd9d866 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible
Change-Id: Id3136a5eed068e317aa1a7b33a1149629dc76d77
2021-06-11 14:14:20 +00:00
Jonathan Rosser c6703cd5e5 Fix linter errors
Work around the mutually incompatible W503 and W504.

Change-Id: I45d0ca8a911d9cf1af2df52a1cf911db817b13b3
2021-02-02 16:11:03 +02:00
Markos Chandras 4ce17db8f4 SUSE: Add support for openSUSE Leap 15
Change-Id: Icf3ef9dc5dde29b0f8435d7598718ed239a30d64
2018-08-10 09:48:27 +03:00
Jonathan Rosser 352b86d36b Add bionic to galaxy_info metadata
Change-Id: I7942b301b52247564b5561f9e065f133ae91df28
2018-08-02 14:06:04 +01:00
Major Hayden 89f24106cc Add role maturity metadata to ansible-hardening
Change-Id: I920999761b69af700cebf2539fe7a4b516f86bf6
2017-11-03 13:50:50 +00:00
Major Hayden d2ab68b7f2
Correct the list of supported OS versions
This patch corrects the list of suppored OS versions and puts
them in alphabetical order. It also updates the list of platforms
in meta/main.yml.

Change-Id: I6ba6713997c08a21c39e533047849878e710c485
2017-06-28 15:51:05 -05:00
Markos Chandras f422da8599 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. The security rules
are similar to the RedHat and Ubuntu ones. We also replace
ansible_os_family with ansible_pkg_mgr since the former does not
return consistent results across different SUSE distributions especially
on older Ansible versions.

Change-Id: I20ffe17039bb641aad70d8123f0b7e7417a42cba
2017-06-27 15:43:53 +01:00
Major Hayden c09763ecca Adjust readme/meta for Ansible 2.3
Change-Id: Ibf9cd5e7a1da3f653779a4a4c4add18f37466417
2017-04-20 10:08:05 -05:00
Major Hayden 1bd5dcc694 Correct minimum Ansible version in readme
Change-Id: Idf1004b834ecc9b9f0bea54fcf4ffe33d31459e9
2017-02-09 08:05:45 -06:00
Major Hayden 22c4c21583 Add CentOS 7 and Ubuntu 16.04 support
This patch adds initial support for CentOS 7 and Ubuntu 16.04
to the security role. Documentation and tests still need updates
in subsequent patches.

Release notes are included.

Change-Id: Iae936bb307a5938651c55e703d68d39a7716d178
2016-05-13 14:57:28 -05:00
Eric Brown 13a2e169aa Bump minimum required version of Ansible
Prior to Ansible 1.8.3, the sysctl module had a bug where improperly
tries to use lower() on an int value.

http://paste.openstack.org/show/483785/

Change-Id: I8866fce3c20dbf91f6c79dcda2e34ecf6ae5084c
2016-01-13 12:41:02 -08:00
Major Hayden 97f9891166 Fixing testing bug
Change-Id: I98954dcb26ff28c94f97e0d4a85a8bee7bc27b30
2015-12-07 15:18:29 -06:00
Ian Cordasco 5e9576f2c7 Fix typo: secuity -> security
Change-Id: If9b40bc6dc02fa67a934dd32e77ee1cfaa8125d5
2015-10-23 19:01:40 -05:00
Jesse Pretorius 58ac7a8a7a Enable role testing and make structure ansible-galaxy compatible
This patch adds the bits needed to implement automated syntax/lint
role testing. It also moves the role into the base repository so
that the role becomes fully compatible with ansible-galaxy to
improve the role's consumability.

Change-Id: Ia79cd5dedbbe50dfdf46688830a989ff0897832a
2015-10-09 11:47:23 +00:00