Compare commits
3
Commits
v1.7.0
...
ae822e72c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae822e72c7 | ||
|
|
6a29576036 | ||
|
|
e2d89b9617 |
No files matched your search
@@ -83,12 +83,12 @@ jobs:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
job_image: ubuntu:24.04@sha256:2198e4c65076e9cb0b3d695219df667c0e3b0072da64ca3c2648aca17dcecaf5
|
job_image: ubuntu:24.04@sha256:2198e4c65076e9cb0b3d695219df667c0e3b0072da64ca3c2648aca17dcecaf5
|
||||||
- name: molecule-ubuntu2604
|
- name: molecule-ubuntu2604
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
subpath: images/molecule-ubuntu2604
|
subpath: images/molecule-ubuntu2604
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
job_image: ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96
|
job_image: ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96
|
||||||
- name: ci
|
- name: ci
|
||||||
version: 0.2.27
|
version: 0.2.28
|
||||||
subpath: ""
|
subpath: ""
|
||||||
dockerfile: images/ci/Dockerfile
|
dockerfile: images/ci/Dockerfile
|
||||||
job_image: ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96
|
job_image: ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
# build stage prints the sizes it will copy; the first push is the real test.
|
# build stage prints the sizes it will copy; the first push is the real test.
|
||||||
# Base image: ubuntu:26.04 index digest as of 2026-10-26, same as molecule-ubuntu2604.
|
# Base image: ubuntu:26.04 index digest as of 2026-10-26, same as molecule-ubuntu2604.
|
||||||
|
|
||||||
FROM ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96 AS os
|
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS os
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
# fails without host keys, so they cannot be removed; image scanners will flag them.
|
# fails without host keys, so they cannot be removed; image scanners will flag them.
|
||||||
# They are throwaway keys of a test target that is never exposed.
|
# They are throwaway keys of a test target that is never exposed.
|
||||||
# ubuntu:26.04 index digest as of 2026-10-26.
|
# ubuntu:26.04 index digest as of 2026-10-26.
|
||||||
FROM ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96
|
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
|
LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
|
||||||
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
|
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
|
|||||||
## Example play
|
## Example play
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- hosts: pve_lxcs
|
- hosts: containers
|
||||||
roles:
|
roles:
|
||||||
- role: mortis.kamino.fail2ban
|
- role: mortis.kamino.fail2ban
|
||||||
vars:
|
vars:
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
# Not service_facts: it returns a fact named `services`, which (with
|
# Not service_facts: it returns a fact named `services`, which (with
|
||||||
# inject_facts_as_vars) overrides the host_vars `services` list used by
|
# inject_facts_as_vars) overrides any inventory variable of that name, such as
|
||||||
# playbooks/install_services.yml. Only installed unit files are listed, so
|
# a list of services a playbook installs. Only installed unit files are listed,
|
||||||
# units that are merely referenced (LoadState not-found) are excluded.
|
# so units that are merely referenced (LoadState not-found) are excluded.
|
||||||
- name: List installed service unit files # noqa: command-instead-of-module
|
- name: List installed service unit files # noqa: command-instead-of-module
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command: systemctl list-unit-files --type=service --no-legend --plain
|
ansible.builtin.command: systemctl list-unit-files --type=service --no-legend --plain
|
||||||
|
|||||||
Reference in new issue
Block a user