如何在 ansible-playbook 中查找 amazon.aws.aws_secret?
How to lookup an amazon.aws.aws_secret in ansible-playbook?
我正在寻找一种方法来查找存储在 Amazon AWS 机密管理器中的机密。我正在关注 this link.
中的官方文档
我使用的测试剧本是:
- hosts: 127.0.0.1
connection: local
tasks:
- name: Lookup secret
debug:
msg: "{{ query('amazon.aws.aws_secret', 'my_secret', region='us-west-1') }} "
但我得到了错误:
TASK [Lookup secret] **********************************************************************************************************************************************************************************************
objc[22931]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.
objc[22931]: +[__NSPlaceholderDictionary 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 中成功查找过 amazon.aws.aws_secret?
这是我的 ansible 版本:
$ ansible --version
ansible 2.10.2
...
python version = 3.8.6 (default, Oct 8 2020, 14:07:53) [Clang 11.0.0 (clang-1100.0.33.17)]
这个问题是在ansible中遇到的,后来证明是一般Python和MacOS的问题。问题中的示例设置后有效:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
根据 post 在 .
我正在寻找一种方法来查找存储在 Amazon AWS 机密管理器中的机密。我正在关注 this link.
中的官方文档我使用的测试剧本是:
- hosts: 127.0.0.1
connection: local
tasks:
- name: Lookup secret
debug:
msg: "{{ query('amazon.aws.aws_secret', 'my_secret', region='us-west-1') }} "
但我得到了错误:
TASK [Lookup secret] **********************************************************************************************************************************************************************************************
objc[22931]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.
objc[22931]: +[__NSPlaceholderDictionary 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 中成功查找过 amazon.aws.aws_secret?
这是我的 ansible 版本:
$ ansible --version
ansible 2.10.2
...
python version = 3.8.6 (default, Oct 8 2020, 14:07:53) [Clang 11.0.0 (clang-1100.0.33.17)]
这个问题是在ansible中遇到的,后来证明是一般Python和MacOS的问题。问题中的示例设置后有效:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
根据 post 在