dbernaci / cis-debian10-ansible Goto Github PK
View Code? Open in Web Editor NEWAnsible role for Debian 10 CIS hardening
License: GNU General Public License v3.0
Ansible role for Debian 10 CIS hardening
License: GNU General Public License v3.0
Hi Denis,
I was trying to run the ansible playbook with dry run option, it failing for following checks.
ansible-playbook -i localhost -C CIS-Debian10-runbook.yml
TASK [/etc/ansible/CIS-Debian10-Ansible : 1.1.6 Ensure separate partition exists for /var] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'ansible_mounts | byattr('mount', '/var') | list | length > 0' failed. The error was: error while evaluating conditional (ansible_mounts | byattr('mount', '/var') | list | length > 0): 'ansible_mounts' is undefined"}
$ df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/template--vg-var 1.4G 330M 969M 26% /var
Even it failed for /tmp mount check. I am using ansible [core 2.11.6]
Is there anyway I can skip filesystem checks and run the playbook ?
In 1.7.1.2 Ensure AppArmor is enabled in the bootloader configuration
the replace task uses the follow option which was dropped in ansible 2.5.
Option follow has been removed in Ansible 2.5, because this module modifies the contents of the file so follow=no doesn’t make sense.
from Ansible Replace
Thanks for this great resource.
It appears at # 5.4 User Accounts and Environment:
Only 5.4.1 and 5.4.1.5 have their defaults defined in the role's /default/main.yml file:
debian10cis_rules_5_4_1: true
debian10cis_rules_5_4_1_5: true
these options highlighted below have no reference in the roles /default/main.yml file:
5.4.1.1 Ensure password expiration is days or less (Scored)
5.4.1.2 Ensure minimum days between password changes is configured (Scored)
5.4.1.3 Ensure password expiration warning days is 7 or more (Scored)
5.4.1.4 Ensure inactive password lock is 30 days or less (Scored)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.