docs: drop environment names left in fail2ban and systemd_hardening
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 1m44s

The fail2ban README example played against a consumer's real inventory
group; it now uses a generic group name. A systemd_hardening task comment
named a consumer playbook; it now describes the clash with any inventory
variable called `services` in general terms. No task or default changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-16 20:07:30 +00:00
1 parent 214109b8f4
commit e2d89b9617
3 files changed
+8 -4

No files matched your search

@@ -0,0 +1,4 @@
---
trivial:
- fail2ban - the README example play targets a generic group name.
- systemd_hardening - a task comment no longer names a consumer playbook.
+1 -1
View File
@@ -44,7 +44,7 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
## Example play
```yaml
- hosts: pve_lxcs
- hosts: containers
roles:
- role: mortis.kamino.fail2ban
vars:
+3 -3
View File
@@ -21,9 +21,9 @@
tags: always
# Not service_facts: it returns a fact named `services`, which (with
# inject_facts_as_vars) overrides the host_vars `services` list used by
# playbooks/install_services.yml. Only installed unit files are listed, so
# units that are merely referenced (LoadState not-found) are excluded.
# inject_facts_as_vars) overrides any inventory variable of that name, such as
# a list of services a playbook installs. Only installed unit files are listed,
# so units that are merely referenced (LoadState not-found) are excluded.
- name: List installed service unit files # noqa: command-instead-of-module
become: true
ansible.builtin.command: systemctl list-unit-files --type=service --no-legend --plain