On a MacBook with an ARM architecture, I can't fetch secrets from the 'infisical' instance.
Example code:
- name: Fetch secrets
hosts: localhost
gather_facts: true
vars:
read_all_secrets_within_scope: "{{ lookup('infisical.vault.read_secrets', token='<token_here>', path='/', env_slug='dev', url='https://ifc.self.managed') }}"
tasks:
- debug:
var: read_all_secrets_within_scope
Actual output:
TASK [debug] **************************************************************************************************************
objc[54912]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[54912]: +[__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
How to fix it
Run this command in the current terminal session:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Now it's working:
TASK [debug] **************************************************************************************************************
ok: [localhost] => {
"read_all_secrets_within_scope": [
{
"key": "POSTGRES_PORT",
"value": "5432"
},
]
}
This issue is reported here because I have never encountered this problem with other Ansible collections.
On a MacBook with an ARM architecture, I can't fetch secrets from the 'infisical' instance.
Example code:
Actual output:
How to fix it
Run this command in the current terminal session:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YESNow it's working:
This issue is reported here because I have never encountered this problem with other Ansible collections.