Just want to let you know.
This example is bizarre:
- name: Try /usr command: /usr/bin/foo when: foo_usr register: foo_output- name: Try /usr/local command: /usr/local/bin/foo when: foo_usr_bin…
There is a patter for many services and applications: They become alive (start to process incoming connections) some time after they started. If you connect to them at that moment you may be able to connect, but many operations would fail.