【问题标题】:Is there a way to automate ansible vault within the playbook有没有办法在剧本中自动化 ansible vault
【发布时间】:2022-09-27 23:01:19
【问题描述】:

在自动从 AWS 中提取秘密之后,我想使用 Ansible Vault 来锁定它,所以我首先手动测试了这个。有没有办法通过 ansible playbooks 做到这一点。我们需要自动化它,这样当我们提取一个新秘密时,我们就不必不断地锁定和解锁它。

  • 我发现我可以改用 python 脚本,并在剧本中使用该 python 脚本

标签: python amazon-web-services automation ansible ansible-vault


【解决方案1】:

我找到了一个漂亮的website,这正是我需要的。它利用了我的第二条路线,即使用 python 脚本运行保管库并将其放置在剧本中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-30
    • 2020-09-30
    • 2019-10-15
    • 2022-01-16
    • 1970-01-01
    • 2021-07-07
    • 2014-01-11
    相关资源
    最近更新 更多