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

2019-10-08 Thread James Cassell
On Tue, Oct 8, 2019, at 8:58 AM, Troy Cosson wrote: [re-ordered] > > > On Monday, October 7, 2019 at 4:12:36 PM UTC-5, James Cassell wrote:On > Mon, Oct 7, 2019, at 4:19 PM, Troy Cosson wrote: > > > I'm trying to get a Red Hat server (RHEL7) to join a Windows Active > > > Directory domain and

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

2019-10-08 Thread Troy Cosson
I skimmed right over the --stdin-password from the man page. That's way simpler. - Thanks --- - hosts: 127.0.0.1 vars_prompt: - name: username prompt: "What is your Active Directory administrator username?" private: no - name: password prompt: "What is your admi

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

2019-10-07 Thread James Cassell
On Mon, Oct 7, 2019, at 4:19 PM, Troy Cosson wrote: > 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

[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 admin