It is not super easy to diagnose a hanging module. I wrote up some instructions using gdb a few weeks back that may help in figuring out why the module is hanging:
https://gist.github.com/sivel/5076af99d310dbda3188722f02cddeb4 Most often, when a process like this hangs, it is often due to the underlying command asking for some input, that the module is not designed to handle. Or the service is just taking a long time to stop for some reason. On Thu, Oct 13, 2022 at 12:24 PM Axel Rau <[email protected]> wrote: > Applying your patch does not solve my problem. It still hangs. )-( > > Am 13.10.2022 um 12:37 schrieb Todd Lewis <[email protected]>: > > Your last "when:" is wrong. > > when: 'not i_am_master' > > A quoted when condition that contains no jinja mustaches is just a string, > which is always true. You want > > when: not i_am_master > > > I’m missing a clear definition here: Where ends a simple expression and > where start jinja ‚mustaches‘ ? > Some examples: > > when: x > a or (y and z) > when: " DEBUG is defined " > when: "i.replication_type == 'p_dynamic'" > when: "(i_am_master is defined and i_am_master) or i.replication_type == > 'l_master'" > when: "sdt.stat.exists and (i.replication_type.startswith('l') or > i.replication_type == 'p_master')" > > Any clear rule welcome. > > Axel > --- > PGP-Key: CDE74120 ☀ computing @ chaos claudius > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/DEE8795F-9941-4CDB-B285-B3D23C55C92B%40Chaos1.DE > <https://groups.google.com/d/msgid/ansible-project/DEE8795F-9941-4CDB-B285-B3D23C55C92B%40Chaos1.DE?utm_medium=email&utm_source=footer> > . > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v_i%2BXukrSD7BKBZWF2kc1-F_uKKyRZ7L88c-oEGSFFrdQ%40mail.gmail.com.
