New role input cloudflared_tunnel_lookup_delay (int, default 5) sets the seconds between the three retries of a 404 from the tunnel lookup in roles/cloudflared/tasks/configure.yml. The default keeps today's behaviour. tasks/validate.yml refuses a negative value (the same | int(-1) >= 0 pattern as the docker role), and verify.yml has a negative test for it, as roles/AGENTS.md asks for every validation. The Molecule failure cases pass 0, because the stub API answers at once and never changes its answer; the retries still run, so the retry path stays tested without the 5-second waits.
Verified
pre-commit run --files <changed files>: all hooks pass, including ansible-lint, yamllint, REUSE and antsibull-changelog-lint; ansible-test sanity (pre-push) passed.
ansible-playbook --syntax-check on roles/cloudflared/molecule/default/verify.yml.
A local check-mode play runs validate_argument_spec against the main entry point's spec and the role's validate.yml. Delays 0 and 5 are accepted, -1 is refused by the new assert and abc by the spec.
A delay templated to 0 with retries: 3 still makes every attempt.
Reviewed by a separate agent: only the main entry point reaches the lookup and it validates first; no failure case depends on elapsed time (the stub's answers don't change over time).
Not verified
The Molecule default scenario, including the new lookup-delay-negative case; it runs in CI only.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Closes #424
New role input `cloudflared_tunnel_lookup_delay` (int, default 5) sets the seconds between the three retries of a 404 from the tunnel lookup in `roles/cloudflared/tasks/configure.yml`. The default keeps today's behaviour. `tasks/validate.yml` refuses a negative value (the same `| int(-1) >= 0` pattern as the docker role), and `verify.yml` has a negative test for it, as roles/AGENTS.md asks for every validation. The Molecule failure cases pass 0, because the stub API answers at once and never changes its answer; the retries still run, so the retry path stays tested without the 5-second waits.
## Verified
- `pre-commit run --files <changed files>`: all hooks pass, including ansible-lint, yamllint, REUSE and antsibull-changelog-lint; `ansible-test sanity` (pre-push) passed.
- `ansible-playbook --syntax-check` on `roles/cloudflared/molecule/default/verify.yml`.
- A local check-mode play runs `validate_argument_spec` against the main entry point's spec and the role's `validate.yml`. Delays 0 and 5 are accepted, -1 is refused by the new assert and `abc` by the spec.
- A delay templated to 0 with `retries: 3` still makes every attempt.
- Reviewed by a separate agent: only the `main` entry point reaches the lookup and it validates first; no failure case depends on elapsed time (the stub's answers don't change over time).
## Not verified
- The Molecule `default` scenario, including the new `lookup-delay-negative` case; it runs in CI only.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
The tunnel lookup retries a 404 three times, 5 seconds apart, before it
trusts it. The new input sets that delay (default 5, as before), and
validate.yml refuses a negative value. The Molecule failure cases pass 0:
the stub API answers at once, and the three retries still run.
Assisted-by: Claude Code:claude-opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #424
New role input
cloudflared_tunnel_lookup_delay(int, default 5) sets the seconds between the three retries of a 404 from the tunnel lookup inroles/cloudflared/tasks/configure.yml. The default keeps today's behaviour.tasks/validate.ymlrefuses a negative value (the same| int(-1) >= 0pattern as the docker role), andverify.ymlhas a negative test for it, as roles/AGENTS.md asks for every validation. The Molecule failure cases pass 0, because the stub API answers at once and never changes its answer; the retries still run, so the retry path stays tested without the 5-second waits.Verified
pre-commit run --files <changed files>: all hooks pass, including ansible-lint, yamllint, REUSE and antsibull-changelog-lint;ansible-test sanity(pre-push) passed.ansible-playbook --syntax-checkonroles/cloudflared/molecule/default/verify.yml.validate_argument_specagainst the main entry point's spec and the role'svalidate.yml. Delays 0 and 5 are accepted, -1 is refused by the new assert andabcby the spec.retries: 3still makes every attempt.mainentry point reaches the lookup and it validates first; no failure case depends on elapsed time (the stub's answers don't change over time).Not verified
defaultscenario, including the newlookup-delay-negativecase; it runs in CI only.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code