Ansibleのprometheusコレクションを使おうとしたときにエラーでちょっと詰まったのでメモ。
roleを実行しようとしたところ以下の部分で、Pythonがクラッシュしてしまう。
TASK [prometheus.prometheus.node_exporter : Get checksum list from github] ************************************************************************************************************************************
objc[69554]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[69554]: +[__NSPlaceholderDate 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
解決方法
実行時に環境変数を設定
$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
これでクラッシュしなくなる。