[ansible-project] Re: Does Ansible prevent 2 Tasks from modifying the same part of a system?(thus, Task 2 undoing what Task 1 did)

2019-02-02 Thread Sylvain Martel
really nice thing about Powershell DSC is that it balks when you try to do something like that, so I was hoping it would be the same with ansible. On Friday, 25 January 2019 09:23:24 UTC-5, Sylvain Martel wrote: > > Hi, > > We are new to using ansible, and I saw something

[ansible-project] Does Ansible prevent 2 Tasks from modifying the same part of a system?(thus, Task 2 undoing what Task 1 did)

2019-01-25 Thread Sylvain Martel
Hi, We are new to using ansible, and I saw something while going through our early code that had me worried. I have CoderA and CoderB that are starting to create roles and tasks. In one Task, coderA adds IIS features, but coderB, in another role , also adds some IIS features in a Task,

[ansible-project] Re: wait_for JoinDomain, does it exist?

2018-08-03 Thread Sylvain Martel
Our current Ansible workflow is like this: 1- Deploy VM from template, using vmware_guest and we do a join domain as part of the customization feature. But the vmware_guest module does not wait for customization to finish before giving back control to Ansible for the next step. 2- Execute a

[ansible-project] Re: wait_for JoinDomain, does it exist?

2018-08-03 Thread Sylvain Martel
We're also new to Ansible, so not sure either if this can be done, but I'll dig into it. Thanks! On Thursday, 2 August 2018 16:08:22 UTC-4, Luis Bonilla wrote: > > I'm about to get into Ansible so I'm not too familiar with which modules > you can use but if you can create a variable that

[ansible-project] Re: wait_for JoinDomain, does it exist?

2018-08-03 Thread Sylvain Martel
Unfortunately, wait_for_connection requires WinRM to be enabled on the windows guest, and WinRM is only configured after we join the server to the domain. The reason being that the certificate to configure WinRM comes from the Domain CA.(We refuse to use self-signed certificate because,

[ansible-project] wait_for JoinDomain, does it exist?

2018-08-02 Thread Sylvain Martel
Hi, Is there a way in Ansible to have it wait for a windows server to have finished joining his domain before moving on? I use vmware_guest joindomain feature but the problem is that it pass the control back to ansible before the serer has finished his join process, so other play fails

[ansible-project] Re: vmware_guest Trying to deploy 2 VM simulteaneously. One will almost always fail

2018-08-02 Thread Sylvain Martel
8 08:34:26 UTC-4, Sylvain Martel wrote: > > To anyone else that might encounter this problem, I found this thread: > https://groups.google.com/forum/#!searchin/ansible-project/vm$20stuck|sort:date/ansible-project/H_0FhXkm2ns/-TvY5Fc1AgAJ > > which mention this article : > http:

[ansible-project] Re: vmware_guest Trying to deploy 2 VM simulteaneously. One will almost always fail

2018-08-02 Thread Sylvain Martel
To anyone else that might encounter this problem, I found this thread: https://groups.google.com/forum/#!searchin/ansible-project/vm$20stuck|sort:date/ansible-project/H_0FhXkm2ns/-TvY5Fc1AgAJ which mention this article :

[ansible-project] Re: vmware_guest Trying to deploy 2 VM simulteaneously. One will almost always fail

2018-08-02 Thread Sylvain Martel
August 2018 16:17:51 UTC-4, Sylvain Martel wrote: > > Hi, > > We are experimenting with Ansible to deploy VM and, I am not sure what > is the problem, but when I try to deploy 2 VM at the same time, one will > fails 99% of the time, while the other will complete. > >

[ansible-project] vmware_guest Trying to deploy 2 VM simulteaneously. One will almost always fail

2018-08-01 Thread Sylvain Martel
Hi, We are experimenting with Ansible to deploy VM and, I am not sure what is the problem, but when I try to deploy 2 VM at the same time, one will fails 99% of the time, while the other will complete. The one that has the problem is actually stuck in the customization phase, and then the