[ansible-project] PS Script Not Installing RDS

2019-01-18 Thread DC
Hello, I am trying to automate building an MS RDS Server 2016. The automation of the server build works great up until the last part when it tries to install RDS. Two scripts run separately to install RDS, the first one installs the RDS feature, and then Ansible should restart the server afte

Re: [ansible-project] PS Script Not Installing RDS

2019-01-18 Thread Karl Auer
I'm not a Windows peson at all, but it looks to me a bit as if you may not be waiting long enough after the reboot? To test this, just put in a fixed (say) two minute delay to make absolutely certain; f that makes a difference you can work on fine-tuning the delay and/or detecting readiness. The o

Re: [ansible-project] PS Script Not Installing RDS

2019-01-18 Thread Jordan Borean
On Saturday, January 19, 2019 at 7:30:00 AM UTC+10, Karl Auer wrote: > > I'm not a Windows peson at all, but it looks to me a bit as if you may not > be waiting long enough after the reboot? To test this, just put in a fixed > (say) two minute delay to make absolutely certain; f that makes a >

Re: [ansible-project] PS Script Not Installing RDS

2019-01-18 Thread Jordan Borean
Do you get an error message or any output when running it through Ansible. If you do, sharing that would really help with identifying what is going on. Some other suggestion around making your playbook a bit more Ansible-like; - The first script, TS_Script1.ps1 can be simplified by using

Re: [ansible-project] PS Script Not Installing RDS

2019-01-22 Thread DC
Thank you Jordan and Karl for the replies, they are much appreciated! After making changes to my script per suggestions from both of you it still seems that the PS install script is not running. I have tried hard coding the server name with no luck. I have also used Jordan's ansible playbook