Ansible win_chocolatey install_args

发布于 2025-01-20 20:25:33 字数 761 浏览 4 评论 0原文

我尝试使用 ansible 在 Windows 主机上安装 oracle sql Developer 并执行此任务:

- name: Install oracle-sql-developer
  win_chocolatey:
    name: oracle-sql-developer
    version: '20.4.1.20210328'
    state: present
    install_args: "--params \"'/Username:{{ oracle_username }} /Password:{{ oracle_password }}'\""

安装需要 /用户名和 /密码参数,但它不起作用。我尝试了很多方法来传递这个论点,但它也不起作用。我总是收到此错误消息:

"ERROR:   An Oracle account is required to download SQL Developer",
        "",
        "  * Provide your Oracle credentials as package params to the installer and",
        "    retry the installation:",
        "",
        "    choco install oracle-sql-developer --params \"'/Username:{userName} /Password:{password}'\""

如何才能正确获得这些参数?

I try to install oracle sql developer on windows host with ansible with this task:

- name: Install oracle-sql-developer
  win_chocolatey:
    name: oracle-sql-developer
    version: '20.4.1.20210328'
    state: present
    install_args: "--params \"'/Username:{{ oracle_username }} /Password:{{ oracle_password }}'\""

The installation need /Username and /Password arguments but it's not working. I try many way to pass this arguments, but it doesn't work either. I always get this error message:

"ERROR:   An Oracle account is required to download SQL Developer",
        "",
        "  * Provide your Oracle credentials as package params to the installer and",
        "    retry the installation:",
        "",
        "    choco install oracle-sql-developer --params \"'/Username:{userName} /Password:{password}'\""

How can I get these arguments right?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文