url lookup fails on my Apple M1

Dear list,

The following play fails on my ansible installation:

  • hosts: localhost
    gather_facts: false

tasks:

The error is
objc[57643]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[57643]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
ERROR! A worker was found in a dead state

ansible --version
ansible 2.9.18
config file = /Users/tognazju/Documents/ansible-deployment/ansible.cfg
configured module search path = [‘/Users/tognazju/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /opt/homebrew/lib/python3.9/site-packages/ansible
executable location = /opt/homebrew/bin/ansible
python version = 3.9.2 (default, Feb 24 2021, 05:06:40) [Clang 12.0.0 (clang-1200.0.32.29)]

In which direction should I look to find the problem here ?

thanks for any hint.

This is a known issue with Mac OS - https://github.com/ansible/ansible/issues/65108.

You may want to try this - https://github.com/ansible/ansible/issues/65108#issuecomment-557016371. I have not tried this solution personally.

Thanks for the link.