One Line, One Block, Every Time
Fix a regexp that never matches and two blockinfile tasks sharing a marker.
A intermediate Ansible challenge worth 10 points. Solve it hands-on in a real Ansible environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Ticket OPS-3310 - tuning.conf grows a duplicate somaxconn line on every run, and two managed blocks keep overwriting each other so the file is never the same twice.
Converge the file: exactly one net.core.somaxconn = 4096, no leftover = 128, both blocks present under their own markers, hand-tuned values untouched, and a byte-identical result across runs. Then run check.