Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2158233241 | ||
|
|
e7eae3b219 |
No files matched your search
@@ -28,7 +28,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.51@sha256:376e6319e1304f9fa9da1142e7884e39def496a1467528ccb4fe2d04017822db
|
||||
image: git.rkdr.net/mortis/ci:0.2.53@sha256:a106bd35c649fd15f027d4a4e81aa27d60b3c0377bbb6abfd73faf180f8c6f84
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
steps:
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
|
||||
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.51@sha256:376e6319e1304f9fa9da1142e7884e39def496a1467528ccb4fe2d04017822db
|
||||
image: git.rkdr.net/mortis/ci:0.2.53@sha256:a106bd35c649fd15f027d4a4e81aa27d60b3c0377bbb6abfd73faf180f8c6f84
|
||||
steps:
|
||||
# The container has no Node, so JavaScript actions such as actions/checkout
|
||||
# cannot run; clone with git and the job token.
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
# The tag says which release, the digest is what is enforced (bump both together
|
||||
# when image.yml publishes a new version).
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.51@sha256:376e6319e1304f9fa9da1142e7884e39def496a1467528ccb4fe2d04017822db
|
||||
image: git.rkdr.net/mortis/ci:0.2.53@sha256:a106bd35c649fd15f027d4a4e81aa27d60b3c0377bbb6abfd73faf180f8c6f84
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
PRE_COMMIT_HOME: /opt/pre-commit
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
# The molecule-controller pin, as CONTROLLER_IMAGE below: a ci pin here would make every ci
|
||||
# bump select every scenario (ADR 0003).
|
||||
container:
|
||||
image: git.rkdr.net/mortis/molecule-controller:0.1.3@sha256:4fa8a653e7af673f8e9921068dd504700679cc5bdefbfd55369e9cbca3fa9b44
|
||||
image: git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
|
||||
outputs:
|
||||
scenarios: ${{ steps.select.outputs.scenarios }}
|
||||
steps:
|
||||
@@ -134,15 +134,15 @@ jobs:
|
||||
# The tools and collections molecule runs with, apart from Lint's (ADR 0003), so a tool
|
||||
# bump only Lint uses selects no scenario.
|
||||
CONTROLLER_IMAGE: >-
|
||||
git.rkdr.net/mortis/molecule-controller:0.1.3@sha256:4fa8a653e7af673f8e9921068dd504700679cc5bdefbfd55369e9cbca3fa9b44
|
||||
git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
|
||||
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
|
||||
# one locally.
|
||||
MOLECULE_IMAGE: >-
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.12@sha256:5f96ae95e16e205cc433607bab31307b36633ad73468aa7bdc57f4bbddb1c571
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.13@sha256:536cc31bb5ef5d5912b50afa98dc080bdb583baa601027298ec5e90e5712e178
|
||||
# The same for Ubuntu 26.04, the release the hosts are moving to; used by
|
||||
# `image: ${MOLECULE_IMAGE_2604}` in extensions/molecule/image-smoke-2604.
|
||||
MOLECULE_IMAGE_2604: >-
|
||||
git.rkdr.net/mortis/molecule-ubuntu2604:0.1.8@sha256:96496c7fb35e6091d08b057e53ba603256d07483769f27c19582d336ddc11173
|
||||
git.rkdr.net/mortis/molecule-ubuntu2604:0.1.9@sha256:8a9e75ecd53c630e56f4df3a2ced990bfcbd49c247103297114a2b9f30f75d62
|
||||
# Names and labels this run's containers: the scenarios' as `${KAMINO_RUN_ID:-local}-<name>`
|
||||
# with the label net.rkdr.mortis.molecule-run, and the one molecule runs in.
|
||||
KAMINO_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
@@ -249,7 +249,7 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
# The controller pin again, so this job adds no pin of its own to bump.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/molecule-controller:0.1.3@sha256:4fa8a653e7af673f8e9921068dd504700679cc5bdefbfd55369e9cbca3fa9b44
|
||||
image: git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
|
||||
steps:
|
||||
- name: Check the select and scenarios jobs
|
||||
env:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
system_baseline - The sysctl hardening survives a reboot on Debian 13, where ``systemd-sysctl`` no longer reads
|
||||
``/etc/sysctl.conf``. The role now writes its values to ``/etc/sysctl.d/99-zz-system-baseline.conf`` and removes its
|
||||
keys from ``/etc/sysctl.conf``, so the first run reports ``changed`` once.
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
system_baseline - New input ``system_baseline_sysctl_file``, the path of the drop-in that persists the sysctl hardening.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
security_fixes:
|
||||
- >-
|
||||
system_baseline - Every profile now refuses ICMP redirects on every interface, over IPv4 and IPv6. Before, only
|
||||
``net.ipv4.conf.all`` was set, so a host that does not forward still accepted them on its interfaces.
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
system_baseline - A name in ``system_baseline_sysctl_hardening`` may contain ``*``, which sets the key on every interface.
|
||||
@@ -15,7 +15,7 @@ The role targets Ubuntu guests (the `ubuntu_lxc` and `ubuntu_vm` profiles) and P
|
||||
- Facts must be gathered (`gather_facts: true`); `reboot.yml` reads `ansible_facts['os_family']`.
|
||||
- `system_baseline_system_type` is required and has no default (the role does not read a global such as `system_type`; map it in the inventory). Valid values: `ubuntu_lxc`, `ubuntu_vm` or `pve`.
|
||||
- Use it by its fully qualified name, `mortis.kamino.system_baseline`.
|
||||
- Collections: `community.general` (locale, timezone) and `ansible.posix` (mount).
|
||||
- Collections: `community.general` (locale, timezone) and `ansible.posix` (sysctl, mount).
|
||||
- Run it after the roles that manage users and SSH, and before the roles that harden services and manage firewalls and jails. A firewall role that rewrites sysctl values (ufw re-applies its stock `/etc/ufw/sysctl.conf` when it is enabled) must run after this role and needs the same values as this role's `sysctl_hardening` to keep them.
|
||||
- Role dependencies: none.
|
||||
|
||||
@@ -43,8 +43,7 @@ templating error instead of the role's own message.
|
||||
| `system_baseline_unattended_upgrade_settings` | from profile | no | Keys for `50unattended-upgrades` |
|
||||
| `system_baseline_unattended_upgrade_origins` | from profile | no | Pinned `Origins-Pattern` entries; `[]` keeps the distribution default (see below) |
|
||||
| `system_baseline_unattended_upgrade_package_blacklist` | `[]` | no | Packages unattended-upgrades must not touch, as regular expressions (see below) |
|
||||
| `system_baseline_sysctl_hardening` | from profile | no | List of `name` and `value` sysctl pairs; `*` in a name matches every interface (see "Sysctl hardening") |
|
||||
| `system_baseline_sysctl_file` | `/etc/sysctl.d/99-zz-system-baseline.conf` | no | Drop-in that persists the sysctl pairs: a `.conf` file directly under `/etc/sysctl.d` (see "Sysctl hardening") |
|
||||
| `system_baseline_sysctl_hardening` | from profile | no | List of `name` and `value` sysctl pairs |
|
||||
| `system_baseline_secure_tmp_mounts` | from profile | no | Paths remounted as tmpfs with `noexec,nosuid,nodev` |
|
||||
| `system_baseline_journal_max_use` | `200M` | no | Upper bound of the persistent journal (journald `SystemMaxUse`): a number with an optional upper-case `B`, `K`, `M`, `G`, `T`, `P` or `E`, such as `1.5G`; a bare number is bytes. journald does not take `infinity`. Empty leaves the host alone and removes nothing a former run wrote (see "Leaving journald alone") |
|
||||
| `system_baseline_tmux_autostart` | `false` | no | Attach interactive SSH logins to a tmux session (`ubuntu_lxc` and `ubuntu_vm` only) |
|
||||
@@ -130,19 +129,18 @@ The two task files besides `main` are a supported interface, for a caller that d
|
||||
|
||||
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It installs packages from the Ubuntu mirrors, so the runner needs outbound network. It runs `check` before the converge (a fresh host) and after it (a configured host).
|
||||
|
||||
- Verify first checks, on the controller, that the role refuses a bad input with its own message before any change: an unknown `system_baseline_system_type`, an unknown `system_baseline_apt_upgrade` (main flow and `update` entry point), a negative reboot throttle or a negative or boolean post-reboot delay (main flow and `reboot` entry point), a line break in `system_baseline_apt_daily_timeout`, a bad `system_baseline_journal_max_use` (`infinity`, a lower-case unit, a unit with a trailing `B`, a line break, a number), a bad `system_baseline_sysctl_file` (`/etc/sysctl.conf`, `99-sysctl.conf`, a path with `..`, a name without `.conf`, empty), and a bad package blacklist (a quote, a null item, a bare string).
|
||||
- Verify first checks, on the controller, that the role refuses a bad input with its own message before any change: an unknown `system_baseline_system_type`, an unknown `system_baseline_apt_upgrade` (main flow and `update` entry point), a negative reboot throttle or a negative or boolean post-reboot delay (main flow and `reboot` entry point), a line break in `system_baseline_apt_daily_timeout`, a bad `system_baseline_journal_max_use` (`infinity`, a lower-case unit, a unit with a trailing `B`, a line break, a number), and a bad package blacklist (a quote, a null item, a bare string).
|
||||
- Converge applies the `ubuntu_lxc` profile, with tmux autostart and `system_baseline_apt_daily_timeout: 1h`. Verify only resolves the `pve` and `ubuntu_vm` profiles and a consumer override, on the controller, asserting the resolved inputs.
|
||||
- Verify checks the installed and removed packages, the journal size cap, the apt settings in `20auto-upgrades` and `50unattended-upgrades`, the locale, and that systemd loaded the `apt-daily.service` timeout.
|
||||
- Verify checks the tmux snippet: root-owned, valid shell, the session and quoted window command, no effect without a terminal, a session name or window command ending in a newline refused, and the file removed when autostart is off.
|
||||
- Verify refuses bad items in `system_baseline_extra_packages` and `system_baseline_extra_remove_packages` (whitespace, a null, an empty string, a trailing minus, upper case, a bare string) and a package that one input installs and another purges; converge applies the `ubuntu_lxc` profile with `jq` as an extra package and `ed` as an extra removal; verify checks that `jq` is installed, `ed` is gone and the profile's packages are still there, and that an extra `tmux` installs the snippet where a flat list without it installs none.
|
||||
- Verify also checks that a bad `system_baseline_apt_tmpdir` (under `/tmp` or `/var/tmp`, relative, with `..`, empty) is refused in the main flow and in the `update` entry point. It reads `tasks/update.yml` and checks that the scratch directory is created with mode `0700`, that both apt tasks set `TMPDIR` to it, that the connection is reset afterwards, and that the vzdump guard is imported before the upgrade, whose `when` reads the guard's fact: the scenario skips the `update` tag, so the upgrade itself never runs there.
|
||||
- Verify runs the vzdump guard in check mode on the Ubuntu container with `system_baseline_system_type: pve` and a `pvesh` stub, in seven cases (a running, a finished or no vzdump task, the input off, `ubuntu_lxc`); six run the guard's task file alone and the `ubuntu_lxc` case runs the whole `update` entry point. Each case asserts the fact that decides the upgrade and that `pvesh` was run, with `--source active`, only when it should be. It does not assert that the apt task itself was skipped. The stub stands for the real answer, which no CI image has.
|
||||
- Prepare seeds `/etc/sysctl.conf` with keys of the role and other lines. Verify checks that the drop-in holds exactly the profile's keys, that only the role's keys left `/etc/sysctl.conf`, that a key removed from the list leaves the drop-in and that a missing `/etc/sysctl.conf` is not created. It runs the runtime apply on the container's read-only `/proc/sys`: no change for the live value, a reported change in check mode and a failure for a value that cannot be set, each for a plain key and for a `*`, and a failure for a `*` that matches no key.
|
||||
- Verify ends by running the role once with `system_baseline_journal_max_use: ""` after removing the drop-in, and asserts that no drop-in is written and that `systemd-journald` was not restarted.
|
||||
- Verify runs the `reboot` entry point with `system_baseline_reboot_if_required: false`, without and with `/var/run/reboot-required`, and checks the fact and that the host did not reboot.
|
||||
- The `pve` origins pin is applied to the Ubuntu container and read back with `apt-config dump`, then removed again. The package blacklist is written, read back as a list, left alone by a second run and removed by an empty list.
|
||||
|
||||
Not covered: Molecule skips the sysctl runtime apply in the role run, `secure_tmp`, `update` and `timezone` (no privileged container); see `molecule/default/molecule.yml`. So `system_baseline_update` is checked only for its default; the skip itself is not exercised by a test. No test writes a live sysctl value, runs without IPv6 or reboots to see `systemd-sysctl` load the drop-in. No host reboots, and the `pve` profile is not converged: Debian 13 is not verified by a test.
|
||||
Not covered: Molecule skips `sysctl`, `secure_tmp`, `update` and `timezone` (no privileged container); see `molecule/default/molecule.yml`. So `system_baseline_update` is checked only for its default; the skip itself is not exercised by a test. No host reboots, and the `pve` profile is not converged: Debian 13 is not verified by a test.
|
||||
|
||||
## Notes
|
||||
|
||||
@@ -230,20 +228,6 @@ An upgrade of a Proxmox node can restart Proxmox services while a backup holds a
|
||||
|
||||
`system_baseline_journal_max_use: ""` skips the journald task: no drop-in directory, no `50-system-baseline.conf` and no restart of `systemd-journald`. Use it where another drop-in, role or policy owns the journal size. A file an earlier run wrote stays, as for an empty `system_baseline_apt_daily_timeout`; remove it by hand if the cap should go. A value that is not empty and not a size journald reads (`infinity`, `10m`, one with a line break) stops the run before any change, in the same way as the apt-daily value.
|
||||
|
||||
### Sysctl hardening
|
||||
|
||||
The role sets each pair of `system_baseline_sysctl_hardening` on the running kernel when the live value differs, then writes the list to `system_baseline_sysctl_file`, which `systemd-sysctl` loads at boot. A value that cannot be set stops the run before the file is written. `--tags sysctl` does both.
|
||||
|
||||
- Every profile refuses ICMP redirects on every interface: `accept_redirects` is `0` for `all`, `default` and `*` (each interface that exists) over IPv4 and IPv6. `secure_redirects` is `0` for `all` and `default` over IPv4; the kernel reads it only for an interface that accepts redirects. An inventory that overrides the list or a profile's `sysctl_hardening` has to add these keys itself.
|
||||
- A `*` sets every matching key except those with an entry of their own, so `net.ipv4.conf.eth1.accept_redirects` in the list keeps its value. At boot an entry in any other `sysctl.d` file also wins over a `*`. Write names with dots, and a dot in an interface name as a slash: `net.ipv4.conf.eth0/100.accept_redirects`. Use a `*` only for keys with a single-word value, and no two patterns that match the same key.
|
||||
- Without IPv6 in the kernel the role skips the `net.ipv6` keys on the running kernel and still persists them. `systemd-sysctl` ignores them at boot; `sysctl -p` on the drop-in reports them as missing and exits 1.
|
||||
- The role owns the whole drop-in: a key removed from the list leaves the file, and its live value stays until the next reboot. When the list repeats a key, the last entry wins.
|
||||
- At boot the last file that sets a key wins, in the order of the file names. The default sorts after `99-sysctl.conf`, but a name that starts with a letter loads later: for example Proxmox VE's `/usr/lib/sysctl.d/pve-firewall.conf`, which sets `net.ipv4.conf.all.rp_filter`. To override such a file, choose a name that sorts after it.
|
||||
- Changing `system_baseline_sysctl_file` does not remove the old file, which is still loaded at boot; remove it by hand.
|
||||
- The keys of the list are removed from `/etc/sysctl.conf`, where earlier releases of the role wrote them. Other lines stay, including a key that had already been dropped from the list.
|
||||
- ufw applies its own `/etc/ufw/sysctl.conf` when it starts and can override values such as `net.ipv4.conf.all.log_martians`. Set the same values there (`ufw_sysctl_overrides` of the `ufw` role).
|
||||
- A container may not run `systemd-sysctl` at boot (the unit is skipped when `/proc/sys` is read-only). The values then apply only when the role runs.
|
||||
|
||||
### Apt scratch directory
|
||||
|
||||
The upgrade runs over the SSH connection Ansible uses. An `openssh-server` upgrade restarts `ssh.service`, and a unit with `PrivateTmp=yes` (the `systemd_hardening` role sets it) has its own `/tmp` and `/var/tmp`, which systemd deletes when the unit stops. The files apt staged there for the running upgrade then disappear and dpkg fails, leaving packages unpacked but not configured. So the `update` flow creates `system_baseline_apt_tmpdir` (root, mode `0700`), runs the upgrade and the autoremove with `TMPDIR` set to it, and opens a new connection afterwards, so that later tasks get a fresh private `/tmp`.
|
||||
|
||||
@@ -24,9 +24,6 @@ system_baseline_skip_upgrade_during_vzdump: false
|
||||
# Upper bound of the persistent journal (journald SystemMaxUse); older archived files are removed above it. Empty leaves the host alone
|
||||
# (tasks/journald.yml is not run; a drop-in an earlier run wrote stays).
|
||||
system_baseline_journal_max_use: 200M
|
||||
# Drop-in that persists the sysctl hardening (tasks/sysctl.yml). The last file that sets a key wins at boot, so the name sorts after
|
||||
# 99-sysctl.conf. A file whose name starts with a letter still loads later.
|
||||
system_baseline_sysctl_file: /etc/sysctl.d/99-zz-system-baseline.conf
|
||||
# Attach an interactive SSH login to a tmux session (see tasks/tmux.yml). Off by default: it changes what every login does.
|
||||
# Installed only when tmux is among the packages to install: the ubuntu_lxc and ubuntu_vm profiles have it, the pve profile has none unless
|
||||
# system_baseline_extra_packages adds it.
|
||||
@@ -110,13 +107,7 @@ system_baseline_profiles:
|
||||
- { name: "kernel.randomize_va_space", value: 2 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.log_martians", value: 1 }
|
||||
@@ -179,13 +170,7 @@ system_baseline_profiles:
|
||||
- { name: "net.ipv4.tcp_syncookies", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
|
||||
@@ -246,13 +231,7 @@ system_baseline_profiles:
|
||||
- { name: "kernel.randomize_va_space", value: 2 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.log_martians", value: 1 }
|
||||
@@ -297,8 +276,4 @@ system_baseline_unattended_upgrade_origins: "{{ system_baseline_profile.unattend
|
||||
# package blacklist"). Entries are regular expressions matched against the package name.
|
||||
system_baseline_unattended_upgrade_package_blacklist: []
|
||||
system_baseline_sysctl_hardening: "{{ system_baseline_profile.sysctl_hardening }}"
|
||||
# What the role acts on, as {name: value}. Internal. The last entry of a repeated key wins, and a boolean word becomes the number sysctl takes.
|
||||
__system_baseline_sysctl: >-
|
||||
{{ dict(system_baseline_sysctl_hardening | map(attribute='name') | zip(system_baseline_sysctl_hardening | map(attribute='value') | map('string')
|
||||
| map('regex_replace', '(?i)^(y|yes|on|t|true)$', '1') | map('regex_replace', '(?i)^(n|no|off|f|false)$', '0'))) }}
|
||||
system_baseline_secure_tmp_mounts: "{{ system_baseline_profile.secure_tmp_mounts }}"
|
||||
@@ -60,15 +60,6 @@ argument_specs:
|
||||
is bytes); anything else (C(infinity), a lower-case unit, a line break) is refused before any change. Empty leaves the host
|
||||
alone: no drop-in is written and journald is not restarted.
|
||||
Clearing the value later does not remove a file already written.
|
||||
system_baseline_sysctl_file:
|
||||
type: str
|
||||
default: /etc/sysctl.d/99-zz-system-baseline.conf
|
||||
description:
|
||||
- >-
|
||||
Drop-in that persists C(system_baseline_sysctl_hardening) across reboots. The role owns the whole file. It must be a C(.conf)
|
||||
file directly under C(/etc/sysctl.d), other than C(99-sysctl.conf); anything else is refused before any change.
|
||||
- The last file that sets a key wins at boot, in the order of the file names; a name that starts with a letter sorts after the default.
|
||||
- Changing the value later does not remove the old file.
|
||||
system_baseline_tmux_autostart:
|
||||
type: bool
|
||||
default: false
|
||||
|
||||
@@ -45,9 +45,9 @@ platforms:
|
||||
provisioner:
|
||||
name: ansible
|
||||
options:
|
||||
# Applying sysctls (molecule-notest) and tmpfs mounts need a privileged container; a full upgrade
|
||||
# adds only time; the timezone needs timedatectl. The rest of the role runs for real.
|
||||
skip-tags: molecule-notest,notest,secure_tmp,update,timezone
|
||||
# sysctl and tmpfs mounts need a privileged container; a full upgrade adds only
|
||||
# time; the timezone needs timedatectl. The rest of the role runs for real.
|
||||
skip-tags: molecule-notest,notest,sysctl,secure_tmp,update,timezone
|
||||
verifier:
|
||||
name: ansible
|
||||
scenario:
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
---
|
||||
# A package the role must remove, and the locales tool the role assumes exists
|
||||
# (it does on a stock Ubuntu host). jq (system_baseline_extra_packages) must be absent, so that the role is what installs it, and ed
|
||||
# (system_baseline_extra_remove_packages, on no profile list) must be present, so that the role is what purges it. procps has the sysctl
|
||||
# command verify needs.
|
||||
# (system_baseline_extra_remove_packages, on no profile list) must be present, so that the role is what purges it.
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Install packages the role removes and tools it assumes
|
||||
- name: Install a package on the role's remove list and locale-gen
|
||||
ansible.builtin.apt:
|
||||
name: [telnet, locales, ed, procps]
|
||||
name: [telnet, locales, ed]
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
@@ -17,13 +16,3 @@
|
||||
ansible.builtin.apt:
|
||||
name: jq
|
||||
state: absent
|
||||
|
||||
- name: Seed /etc/sysctl.conf with keys of the role and lines it must leave alone
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/sysctl.conf
|
||||
mode: "0644"
|
||||
content: |
|
||||
# net.ipv4.tcp_syncookies=1
|
||||
net.ipv4.tcp_syncookies=1
|
||||
vm.max_map_count = 262144
|
||||
net.ipv4.conf.all.accept_redirects = 0
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
# One refusal: the role must stop on validation, before it changes anything, with a message that names the variable.
|
||||
- name: Run the role with a bad system_baseline_sysctl_file
|
||||
block:
|
||||
- name: Include system_baseline
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_sysctl_file: "{{ system_baseline_refused_sysctl_file }}"
|
||||
- name: Unreachable when validation works
|
||||
ansible.builtin.fail:
|
||||
msg: system_baseline ran with an invalid system_baseline_sysctl_file
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that: "'system_baseline_sysctl_file must be' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
@@ -151,25 +151,6 @@
|
||||
- "200M\nStorage=none"
|
||||
- 300
|
||||
|
||||
# The role overwrites the whole drop-in: /etc/sysctl.conf, the link to it, another directory and a name systemd-sysctl does not read
|
||||
# each stop the run before any change.
|
||||
- name: A bad sysctl drop-in path is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Refuse each bad value
|
||||
ansible.builtin.include_tasks: tasks/refuse_sysctl_file.yml
|
||||
vars:
|
||||
system_baseline_refused_sysctl_file: "{{ item }}"
|
||||
loop:
|
||||
- /etc/sysctl.conf
|
||||
- /etc/sysctl.d/99-sysctl.conf
|
||||
- /etc/sysctl.d/../sysctl.conf
|
||||
- /etc/sysctl.d/baseline
|
||||
- ""
|
||||
|
||||
# A quote, a null item and a bare string (not a list) each stop the run: the bare string would otherwise be split into one-character
|
||||
# patterns, and the null item would become an empty pattern that matches every package.
|
||||
- name: A bad package blacklist is refused
|
||||
@@ -837,208 +818,6 @@
|
||||
- {type: pve, input: false, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}]}
|
||||
- {type: ubuntu_lxc, input: true, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}], tasks_from: update}
|
||||
|
||||
# The converge persisted the ubuntu_lxc list and cleaned /etc/sysctl.conf. The rest runs the task files directly: persisting a shorter list
|
||||
# without /etc/sysctl.conf, then the runtime apply against the container's read-only /proc/sys.
|
||||
- name: The sysctl hardening is persisted in its own drop-in
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
tasks:
|
||||
- name: Read the drop-in and /etc/sysctl.conf
|
||||
ansible.builtin.command:
|
||||
argv: [cat, "{{ item }}"]
|
||||
loop:
|
||||
- /etc/sysctl.d/99-zz-system-baseline.conf
|
||||
- /etc/sysctl.conf
|
||||
register: system_baseline_verify_sysctl
|
||||
changed_when: false
|
||||
|
||||
- name: The drop-in holds the profile's keys and only they left /etc/sysctl.conf
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_verify_sysctl.results[0].stdout_lines | reject('match', '#') | list == system_baseline_verify_sysctl_expected
|
||||
- system_baseline_verify_sysctl.results[1].stdout_lines == ['# net.ipv4.tcp_syncookies=1', 'vm.max_map_count = 262144']
|
||||
quiet: true
|
||||
vars:
|
||||
system_baseline_verify_sysctl_expected:
|
||||
- net.ipv4.tcp_syncookies=1
|
||||
- net.ipv4.conf.all.accept_source_route=0
|
||||
- net.ipv4.conf.all.accept_redirects=0
|
||||
- net.ipv4.conf.default.accept_redirects=0
|
||||
- net.ipv4.conf.*.accept_redirects=0
|
||||
- net.ipv4.conf.all.secure_redirects=0
|
||||
- net.ipv4.conf.default.secure_redirects=0
|
||||
- net.ipv6.conf.all.accept_redirects=0
|
||||
- net.ipv6.conf.default.accept_redirects=0
|
||||
- net.ipv6.conf.*.accept_redirects=0
|
||||
- net.ipv4.icmp_echo_ignore_broadcasts=1
|
||||
- net.ipv4.icmp_ignore_bogus_error_responses=1
|
||||
|
||||
- name: Remove /etc/sysctl.conf
|
||||
ansible.builtin.file:
|
||||
path: /etc/sysctl.conf
|
||||
state: absent
|
||||
|
||||
- name: Persist a list that repeats one key
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.tcp_syncookies, value: 0 }
|
||||
- { name: net.ipv4.tcp_syncookies, value: "yes" }
|
||||
|
||||
- name: Read the drop-in again
|
||||
ansible.builtin.command:
|
||||
argv: [cat, /etc/sysctl.d/99-zz-system-baseline.conf]
|
||||
register: system_baseline_verify_sysctl_short
|
||||
changed_when: false
|
||||
|
||||
- name: Stat /etc/sysctl.conf
|
||||
ansible.builtin.stat:
|
||||
path: /etc/sysctl.conf
|
||||
register: system_baseline_verify_sysctl_conf
|
||||
|
||||
- name: Only the last entry is left and /etc/sysctl.conf was not created
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_verify_sysctl_short.stdout_lines | reject('match', '#') | list == ['net.ipv4.tcp_syncookies=1']
|
||||
- not system_baseline_verify_sysctl_conf.stat.exists
|
||||
quiet: true
|
||||
|
||||
- name: Read a live value
|
||||
ansible.builtin.command:
|
||||
argv: [cat, /proc/sys/net/ipv4/tcp_syncookies]
|
||||
register: system_baseline_verify_sysctl_live
|
||||
changed_when: false
|
||||
|
||||
- name: Apply the value the kernel already has
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.tcp_syncookies, value: "{{ system_baseline_verify_sysctl_live.stdout }}" }
|
||||
|
||||
- name: Nothing was applied
|
||||
ansible.builtin.assert:
|
||||
that: __system_baseline_sysctl_apply is not changed
|
||||
quiet: true
|
||||
|
||||
- name: Preview a different value in check mode
|
||||
check_mode: true
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from sysctl_apply
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.tcp_syncookies, value: "{{ 1 - system_baseline_verify_sysctl_live.stdout | int }}" }
|
||||
|
||||
- name: The pending change is reported
|
||||
ansible.builtin.assert:
|
||||
that: __system_baseline_sysctl_apply is changed
|
||||
quiet: true
|
||||
|
||||
- name: Apply a value that cannot be set
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from sysctl_apply
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.tcp_syncookies, value: "{{ 1 - system_baseline_verify_sysctl_live.stdout | int }}" }
|
||||
- name: Unreachable when a refused value fails
|
||||
ansible.builtin.fail:
|
||||
msg: system_baseline ignored a sysctl that could not be set
|
||||
rescue:
|
||||
- name: The refused write stopped the play
|
||||
ansible.builtin.assert:
|
||||
that: ansible_failed_task.name is search('Apply the sysctl hardening settings')
|
||||
quiet: true
|
||||
|
||||
# The container can inherit the runner host's values. The interfaces share the value of `default`; `all` has its own.
|
||||
- name: Read the live arp_accept values
|
||||
ansible.builtin.command:
|
||||
argv: [cat, /proc/sys/net/ipv4/conf/all/arp_accept, /proc/sys/net/ipv4/conf/default/arp_accept]
|
||||
register: system_baseline_verify_sysctl_arp
|
||||
changed_when: false
|
||||
|
||||
- name: Apply a wildcard value that every interface already has
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.conf.all.arp_accept, value: "{{ system_baseline_verify_sysctl_arp.stdout_lines[0] }}" }
|
||||
- { name: "net.ipv4.conf.*.arp_accept", value: "{{ system_baseline_verify_sysctl_arp.stdout_lines[1] }}" }
|
||||
|
||||
- name: No interface was changed
|
||||
ansible.builtin.assert:
|
||||
that: __system_baseline_sysctl_wildcard_apply is not changed
|
||||
quiet: true
|
||||
|
||||
- name: Preview a different wildcard value in check mode
|
||||
check_mode: true
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from sysctl_apply
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: net.ipv4.conf.all.arp_accept, value: "{{ system_baseline_verify_sysctl_arp.stdout_lines[0] }}" }
|
||||
- { name: "net.ipv4.conf.*.arp_accept", value: "{{ (system_baseline_verify_sysctl_arp.stdout_lines[1] == '0') | ternary(1, 0) }}" }
|
||||
|
||||
- name: The pending change covers the interfaces and not the key with its own entry
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- __system_baseline_sysctl_wildcard_apply is changed
|
||||
- system_baseline_verify_sysctl_cmd is search('net.ipv4.conf.lo.arp_accept=')
|
||||
- system_baseline_verify_sysctl_cmd is not search('net.ipv4.conf.all.arp_accept=')
|
||||
quiet: true
|
||||
vars:
|
||||
system_baseline_verify_sysctl_cmd: "{{ __system_baseline_sysctl_wildcard_apply.results[0].cmd | join(' ') }}"
|
||||
|
||||
- name: Apply a wildcard value that cannot be set
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from sysctl_apply
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: "net.ipv4.conf.*.arp_accept", value: "{{ (system_baseline_verify_sysctl_arp.stdout_lines[1] == '0') | ternary(1, 0) }}" }
|
||||
- name: Unreachable when a refused wildcard value fails
|
||||
ansible.builtin.fail:
|
||||
msg: system_baseline ignored a sysctl wildcard that could not be set
|
||||
rescue:
|
||||
- name: The refused wildcard write stopped the play
|
||||
ansible.builtin.assert:
|
||||
that: ansible_failed_task.name is search('Apply the sysctl wildcards')
|
||||
quiet: true
|
||||
|
||||
- name: Apply a wildcard that matches no key
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from sysctl_apply
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: sysctl_apply
|
||||
vars:
|
||||
system_baseline_sysctl_hardening:
|
||||
- { name: "net.ipv4.conf.*.accept_redirect", value: 0 }
|
||||
- name: Unreachable when a wildcard without a match fails
|
||||
ansible.builtin.fail:
|
||||
msg: system_baseline ignored a sysctl wildcard that matches no key
|
||||
rescue:
|
||||
- name: The wildcard without a match stopped the play
|
||||
ansible.builtin.assert:
|
||||
that: ansible_failed_task.name is search('Read the live values a wildcard matches')
|
||||
quiet: true
|
||||
|
||||
# An empty system_baseline_journal_max_use leaves journald alone: with the drop-in gone, the role neither writes it again nor restarts
|
||||
# systemd-journald. It runs last, because it applies the role with its defaults (the converge's tmux autostart and apt-daily timeout are
|
||||
# not set here) and the checks above read what the converge wrote.
|
||||
|
||||
@@ -38,12 +38,7 @@
|
||||
when: system_baseline_apt_daily_timeout | length > 0
|
||||
tags: apt-daily-timeout
|
||||
|
||||
# Applied first, so a value the kernel refuses stops the run before it is persisted. molecule's containers have a read-only /proc/sys.
|
||||
- name: Apply the sysctl hardening
|
||||
ansible.builtin.import_tasks: sysctl_apply.yml
|
||||
tags: [sysctl, molecule-notest]
|
||||
|
||||
- name: Persist the sysctl hardening
|
||||
- name: Harden sysctl
|
||||
ansible.builtin.import_tasks: sysctl.yml
|
||||
tags: sysctl
|
||||
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
---
|
||||
# Values persist in the role's own drop-in: systemd-sysctl does not read /etc/sysctl.conf on every supported release.
|
||||
- name: Persist the sysctl hardening settings
|
||||
ansible.builtin.template:
|
||||
src: sysctl.conf.j2
|
||||
dest: "{{ system_baseline_sysctl_file }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
become: true
|
||||
|
||||
# Not ansible.posix.sysctl, which rewrites every other line of the file. A missing file is left missing.
|
||||
- name: Remove the role's keys from /etc/sysctl.conf
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sysctl.conf
|
||||
regexp: '^\s*{{ item | regex_escape }}\s*='
|
||||
state: absent
|
||||
loop: "{{ __system_baseline_sysctl.keys() | list }}"
|
||||
- name: Apply sysctl hardening settings
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.name }}"
|
||||
value: "{{ item.value }}"
|
||||
sysctl_set: true
|
||||
reload: true
|
||||
loop: "{{ system_baseline_sysctl_hardening }}"
|
||||
become: true
|
||||
@@ -1,73 +0,0 @@
|
||||
---
|
||||
# Not ansible.posix.sysctl, which always manages a file too. The absolute path is for a PATH without the sbin directories.
|
||||
# A key that cannot be read (unknown or write-only) counts as different, so the write below decides.
|
||||
- name: Read the live sysctl values
|
||||
ansible.builtin.command:
|
||||
argv: [/usr/sbin/sysctl, -e, -n, "{{ item.key }}"]
|
||||
loop: "{{ __system_baseline_sysctl | dict2items | rejectattr('key', 'search', '[*]') }}"
|
||||
register: __system_baseline_sysctl_live
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
check_mode: false
|
||||
become: true
|
||||
|
||||
# The directory is missing when the kernel runs without IPv6; a mistyped IPv6 key still fails when it exists.
|
||||
- name: Check that the kernel has IPv6
|
||||
ansible.builtin.stat:
|
||||
path: /proc/sys/net/ipv6/conf
|
||||
register: __system_baseline_sysctl_ipv6
|
||||
|
||||
# `removes` names a path that always exists: with it, check mode reports the pending write as changed instead of skipping the command.
|
||||
# sysctl exits 0 for a read-only key and only warns (`setting key ...`), so stderr counts too.
|
||||
- name: Apply the sysctl hardening settings
|
||||
ansible.builtin.command:
|
||||
argv: [/usr/sbin/sysctl, -w, "{{ item.item.key }}={{ item.item.value }}"]
|
||||
removes: /proc/sys
|
||||
environment:
|
||||
LC_ALL: C
|
||||
loop: "{{ __system_baseline_sysctl_live.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item.key }}={{ item.item.value }}"
|
||||
when:
|
||||
- item.stdout | default('') | split != item.item.value | split
|
||||
- __system_baseline_sysctl_ipv6.stat.exists or item.item.key is not match('net[.]ipv6[.]')
|
||||
register: __system_baseline_sysctl_apply
|
||||
failed_when: >-
|
||||
__system_baseline_sysctl_apply.rc | default(0) != 0
|
||||
or __system_baseline_sysctl_apply.stderr | default('') is search('setting key')
|
||||
become: true
|
||||
|
||||
# After the plain keys: an interface created from here on inherits the new `default`. A wildcard without a match is a typo, as
|
||||
# an unknown plain key is, unless the kernel has no IPv6. sysctl exits 0 when an interface disappears while it lists them.
|
||||
- name: Read the live values a wildcard matches
|
||||
ansible.builtin.command:
|
||||
argv: [/usr/sbin/sysctl, -a, -e, -r, "^{{ item.key | replace('.', '[.]') | replace('*', '[^.]*') }}$"]
|
||||
loop: "{{ __system_baseline_sysctl | dict2items | selectattr('key', 'search', '[*]') }}"
|
||||
register: __system_baseline_sysctl_wildcard
|
||||
changed_when: false
|
||||
failed_when: >-
|
||||
__system_baseline_sysctl_wildcard.rc != 0
|
||||
or (__system_baseline_sysctl_wildcard.stdout | length == 0
|
||||
and (__system_baseline_sysctl_ipv6.stat.exists or item.key is not match('net[.]ipv6[.]')))
|
||||
check_mode: false
|
||||
become: true
|
||||
|
||||
# A key with its own entry keeps that value, as at boot. -e skips an interface that is gone, unless it goes during the write itself.
|
||||
- name: Apply the sysctl wildcards
|
||||
ansible.builtin.command:
|
||||
argv: "{{ ['/usr/sbin/sysctl', '-e', '-w'] + (__system_baseline_sysctl_pending | product([item.item.value]) | map('join', '=')) }}"
|
||||
removes: /proc/sys
|
||||
environment:
|
||||
LC_ALL: C
|
||||
vars:
|
||||
__system_baseline_sysctl_pending: >-
|
||||
{{ item.stdout_lines | reject('search', ' = ' ~ (item.item.value | regex_escape) ~ '$')
|
||||
| map('regex_replace', ' = .*', '') | difference(__system_baseline_sysctl.keys() | list) }}
|
||||
loop: "{{ __system_baseline_sysctl_wildcard.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item.key }}={{ item.item.value }}"
|
||||
when: __system_baseline_sysctl_pending | length > 0
|
||||
register: __system_baseline_sysctl_wildcard_apply
|
||||
failed_when: >-
|
||||
__system_baseline_sysctl_wildcard_apply.stderr_lines | default([]) | reject('search', 'No such file or directory') | length > 0
|
||||
become: true
|
||||
@@ -62,18 +62,6 @@
|
||||
quiet: true
|
||||
tags: always
|
||||
|
||||
# The role owns the whole file, and systemd-sysctl reads only *.conf. 99-sysctl.conf can be the distribution's link to /etc/sysctl.conf.
|
||||
- name: Validate the sysctl drop-in path
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_sysctl_file is match('^/etc/sysctl\.d/[A-Za-z0-9_][A-Za-z0-9._-]*\.conf\Z')
|
||||
- system_baseline_sysctl_file != '/etc/sysctl.d/99-sysctl.conf'
|
||||
fail_msg: >-
|
||||
system_baseline_sysctl_file must be a .conf file directly under /etc/sysctl.d (letters, digits, . _ and - in the name), other than
|
||||
99-sysctl.conf.
|
||||
quiet: true
|
||||
tags: always
|
||||
|
||||
# The value is written into a unit file: one line, starting with a digit, so no line break can add a second directive. systemd itself
|
||||
# refuses a value it cannot parse (it ignores the setting and logs it).
|
||||
- name: Validate the apt-daily start timeout
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Managed by Ansible (mortis.kamino.system_baseline, tasks/sysctl.yml). Do not edit: the next run overwrites it.
|
||||
{% for name, value in __system_baseline_sysctl.items() %}
|
||||
{{ name }}={{ value }}
|
||||
{% endfor %}
|
||||
Reference in new issue
Block a user