【问题标题】:How to lookup an amazon.aws.aws_secret in ansible-playbook?如何在 ansible-playbook 中查找 amazon.aws.aws_secret?
【发布时间】:2020-10-29 07:19:18
【问题描述】:

我正在寻找一种方法来查找存储在 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)]

【问题讨论】:

    标签: amazon-web-services amazon-ec2 ansible ansible-2.x


    【解决方案1】:

    这个问题是在ansible中遇到的,但结果是一个通用的Python和MacOS问题。问题中的示例在设置后起作用:

    export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
    

    this link 中的每个帖子。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-22
      • 2020-04-06
      • 1970-01-01
      • 2020-07-26
      • 2019-10-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多