Looking at the ansible documentation [0], this appears to the culprit:

    stdin_add_newline           If set to true, append a newline to stdin data.
    boolean                                     Choices:
    added in Ansible 2.8                false
                                                        true ← (default)

So presumably

    command:
      cmd: "ssh -T root@{{ dropbear_ip }}"
      stdin: "{{ luks_pwd }}"
      stdin_add_newline: false

would work too, and is arguably more robust.

-- 
Guilhem.

[0] 
https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/command_module.html

Attachment: signature.asc
Description: PGP signature

Reply via email to