docs: drop environment names left in fail2ban and systemd_hardening
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:
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.
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user