AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ansible Hardening

skill-scoobydont-666-shared-claude-skills-ansible-hardening · by scoobydont-666

>

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-scoobydont-666-shared-claude-skills-ansible-hardening

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-scoobydont-666-shared-claude-skills-ansible-hardening)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
23d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ansible Hardening? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Ansible Hardening

Codify manual security work into idempotent Ansible roles. Every hardening step performed by hand should eventually become a role in this collection.

Roles Needed (from manual work done 2026-03-21)

crowdsec

Installs CrowdSec agent + firewall bouncer, configures collections, whitelists LAN.

# defaults
crowdsec_lapi_port: 8088          # moved from 8080 for OpenShell
crowdsec_collections:
  - crowdsecurity/sshd
  - crowdsecurity/linux
crowdsec_whitelist_cidrs:
  - "{{ lan_subnet }}"

fail2ban

Installs fail2ban, configures SSH jail.

# defaults
fail2ban_maxretry: 3
fail2ban_bantime: 3600
fail2ban_findtime: 600

auditd

Installs auditd, deploys audit rules for sensitive files.

# defaults
auditd_watch_paths:
  - { path: /etc/sudoers, key: sudoers_changes }
  - { path: /etc/sudoers.d/, key: sudoers_changes }
  - { path: /etc/ssh/sshd_config, key: ssh_config }
  - { path: /etc/monero/, key: monero_config }

tailscale

Installs Tailscale, configures serve endpoints.

# defaults
tailscale_serve_ports: []         # list of {local_port, description}
tailscale_funnel: false           # never enable funnel by default

Note: tailscale up requires interactive auth — role should detect and prompt.

semaphore

Installs Semaphore binary, creates config + systemd unit.

# defaults
semaphore_version: "2.17.27"
semaphore_port: 3001
semaphore_bind: "127.0.0.1"
semaphore_db: bolt                # bolt or postgres

sudoers-scope

Replaces blanket NOPASSWD with scoped command list.

# defaults
sudoers_nopasswd_commands:
  - /usr/bin/systemctl
  - /usr/bin/journalctl
  - /usr/bin/apt
  - /usr/bin/apt-get
  # ... full list from /etc/sudoers.d/admin_user

Implementation Pattern

Each role follows monero-farm conventions:

  • defaults/main.yml — all variables with safe defaults
  • tasks/main.yml — idempotent tasks
  • handlers/main.yml — restart/reload handlers
  • templates/ — config file templates (Jinja2)

Rules

  • Always --check --diff before real runs
  • Never remove existing security controls — only add/tighten
  • Whitelist LAN subnet before enabling firewall bouncers
  • Tailscale auth is interactive — can't be fully automated
  • Test on a primary host first, then roll to fleet

Where To Build

These roles belong in your project's ansible/roles/ directory alongside existing roles (base, application-specific, monitoring). The security roles extend the base role's hardening.

Alternatively, create a standalone ansible-hardening collection at /ansible-hardening/ if the scope grows and needs to be reused across multiple projects.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.