How to use command stdin in Ansible?

前端 未结 3 1691
别那么骄傲
别那么骄傲 2020-12-21 04:16

I\'ve tried this:

- name: Log into Docker registry
  command: docker login --username \"{{ docker_registry_username }}\" --password-stdin
  stdin: \"{{ docke         


        
3条回答
  •  失恋的感觉
    2020-12-21 05:10

    Sounds like you want to use the Ansible expect module. See https://docs.ansible.com/ansible/latest/modules/expect_module.html.

    Hope this helps.

提交回复
热议问题