do you get an error or anything?

On Thu, Jun 20, 2019 at 3:03 PM Angel Rengifo Cancino <[email protected]>
wrote:

> Hi:
>
> On Thu, Jun 20, 2019 at 1:44 PM David McPherson <[email protected]>
> wrote:
>
>> 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}}"
>>
> Have you manually tried this same exact command on the shell? Is it
> supposed to not ask for a password? Also, I can notice there's a white
> space between "=" and "{{realm_name.pass}}", is that intentional or a
> mistake?
>
> When I'm not sure how a command (or shell instruction) might work when
> running through ansible, I use to put an echo at the beginning, register
> the output in a variable, show it to stdout and copy &paste manually on the
> shell for testing:
>
> - name: Join the AD Domain
>   command: echo realm join --verbose "{{realm_name.realm}}" --user
> "{{realm_name.user}}" --one-time-password= "{{realm_name.pass}}"
>   register: result
>
> - debug: msg={{ result }}
>
> Hope this helps you.
>
>>
>>
>> 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
>> <https://groups.google.com/d/msgid/ansible-project/0c5705eb-4b50-41fb-94a1-8a84a548d9f0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAA3McK_4AU19yFKBtDost-KLxKmaqnsAdDt%3DCxWz_MTRaw7bdA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAA3McK_4AU19yFKBtDost-KLxKmaqnsAdDt%3DCxWz_MTRaw7bdA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Automation Practice

Senior Automation Consultant & Automation CoP Manager

Red Hat <https://www.redhat.com>
@redhatjobs <https://twitter.com/redhatjobs>   redhatjobs
<https://www.facebook.com/redhatjobs> @redhatjobs
<https://instagram.com/redhatjobs>
<https://www.redhat.com>

-- 
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/CAFYJA%2B%2B%3DJbEcLpm4ymKQcEQ5n_F9yYnQ8xRUfN%3DfSsca-Hj7-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to