Comments (8)
I've added the same check for crontab
, https://github.com/konstruktoid/ansible-role-hardening/pull/382/files
from ansible-role-hardening.
Hi I have tested this fix. It work well !
Thank you for your help !
from ansible-role-hardening.
Hi @sgnsys3 and thanks for reporting this.
I'll have a look as soon as possible.
from ansible-role-hardening.
Running the tests it seems that directory exists by default:
TASK [ansible-role-hardening : Set cron permissions] ***************************
changed: [bullseye] => (item=/etc/cron.d)
changed: [bookworm] => (item=/etc/cron.d)
changed: [testing] => (item=/etc/cron.d)
changed: [bullseye] => (item=/etc/cron.daily)
changed: [bookworm] => (item=/etc/cron.daily)
changed: [testing] => (item=/etc/cron.daily)
changed: [bullseye] => (item=/etc/cron.hourly)
changed: [bookworm] => (item=/etc/cron.hourly)
changed: [testing] => (item=/etc/cron.hourly)
changed: [bullseye] => (item=/etc/cron.weekly)
changed: [bookworm] => (item=/etc/cron.weekly)
changed: [bullseye] => (item=/etc/cron.monthly)
changed: [testing] => (item=/etc/cron.weekly)
changed: [bookworm] => (item=/etc/cron.monthly)
changed: [testing] => (item=/etc/cron.monthly)
but I'll write a PR that handles a missing cron
folder.
from ansible-role-hardening.
could try with #382?
from ansible-role-hardening.
Hi, I have tried #382 The problem above was solved, and Found new error "/etc/crontab is absent. cannot continue"
The root cause is package cron was not installed on the OS.
In this case, Do we need to install cron prior to hardening or Check If cron is installed then hardening cron ?
from ansible-role-hardening.
Ah, yes. cron
is assumed to be installed. I'll rewrite the task so it only runs if cron is installed
from ansible-role-hardening.
Closed by #382
from ansible-role-hardening.
Related Issues (20)
- Disabeling snap removal on playbook HOT 3
- [Documentation] Source(s) of password list? HOT 1
- [BUG] /var/log/syslog grows with 100KB/s HOT 6
- Auditd configuration
- [BUG] Task: Configure sshd using sshd_config.d] ; Error : AnsibleUndefinedVariable: {{ ansible_user }}: 'ansible_user' is undefined" HOT 5
- [BUG] Errors while running role HOT 5
- Custom templates/files HOT 3
- [DOCS] Add info regarding hardened images
- [BUG] Interface with vlan name notworking HOT 1
- Replace the deprecated `ChallengeResponseAuthentication`
- [BUG] Idempotence test fails when using match_ in sshd config HOT 3
- [BUG] scorecard-action HOT 1
- [Question] Disable SSHD? HOT 2
- Past commit change altered code inconsistently HOT 3
- rkhunter SSH v1 HOT 2
- [question] Is there a need to update the /etc/resolv.conf symlink? HOT 1
- [BUG] bullseye_vlan Unable to start service usbguard: Job for usbguard.service failed because the control process exited with error code HOT 5
- [BUG] Invalid WEB_CMD configuration option: command is non-existent or not executable: curl in validate configuration HOT 4
- [BUG] Get DSA Key : You need to install \"jmespath\" prior to running json_query filter HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-hardening.