I am trying to push AD authentication out to a series of Oracle Linux 
machines.
The command is:  realm join --verbose "domain.local" --user "domain_service"

---
- tasks: Add server to AD
  hosts: 'ud-srv'
  become: true
  vars:
    realm_name:
      realm: "domain.local"
      user: "domain_service"
      pass: 'Passwd!!'

  tasks:
   - name: Join the AD Domain
     command: realm join --verbose "{{realm_name.realm}}" --user 
"{{realm_name.user}}" --one-time-password= "{{realm_name.pass}}"

   
The playbook does not seem to pass the password into the command and it 
fails.

how do I get ansible to wait for the password prompt or pass in the 
password for this command?

Thanks,

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0c5705eb-4b50-41fb-94a1-8a84a548d9f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to