aoh

A tool for running Ansible playbooks with `curl <url> | python` commands
git clone https://git.ashermorgan.net/aoh/
Log | Files | Refs | README

commit d041637a4eba9a35e3644492bf6d036557d51da8
parent c749515b49f45f14256f75f5c642f9e4d9820b43
Author: Asher Morgan <asher@ashermorgan.net>
Date:   Sun, 13 Sep 2026 13:09:12 -0700

Fix issue causing slow container exits

Diffstat:
Maoh/runner.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/aoh/runner.py b/aoh/runner.py @@ -132,6 +132,12 @@ class Runner: def _finished_callback(_): self._t_finished = time.time() + def _cancel_callback(): + # We pass our own callback because the default behavior registers + # SIGTERM and SIGINT handlers but doesn't remove them after + # ansible-runner exits + return False + self._thread, self._runner = ansible_runner.run_async( private_data_dir=self._DIR, ident=self.id, @@ -141,6 +147,7 @@ class Runner: passwords=pw_prompt_answers, playbook=self.playbook.path, finished_callback=_finished_callback, + cancel_callback=_cancel_callback, quiet=not AOH_DEBUG, suppress_env_files=True, )