Re: [ansible-project] ansible - shell module using expect

2019-10-08 Thread Troy Cosson
ot;What is your administrator password?" private: yes tasks: - name: join the domain shell: echo -n "{{password}}" | adcli join --stdin-password example.com.com -U {{username}} On Monday, October 7, 2019 at 4:12:36 PM UTC-5, James Cassell wrote: > > O

[ansible-project] ansible - shell module using expect

2019-10-07 Thread Troy Cosson
I'm trying to get a Red Hat server (RHEL7) to join a Windows Active Directory domain and I can't seem to get the expect command to send a password. The playbook asks for the username and password and should then put the username at the end of the adcl command adcli join example.com -U