[ansible-project] vmware_guest building template - dont deploy to a resource pool

2018-01-03 Thread Martyn Kempster
Is there a way to get the vmware_guest module to not deploy a build from template into a resource pool? Our vcenter has a cluster with 4 esx hosts in, there is one resource pool that is setup for SRM, theres nothing in it and i'm not entirely sure why its there. All our VMs get put straight into

[ansible-project] Re: Ability to have survey questions bring up certain results

2018-01-03 Thread Martyn Kempster
Hi Josh, I assume you mean that a survey question will show specific results based upon a previous question. I looked into this a while back for the same issue with wanting what environment is selected to change what following survey answers are allowed when provisioning. At the moment there do

[ansible-project] ansible tries to include the wrong file

2018-01-03 Thread Mike C
Hi, i've got this repo https://github.com/mhristof/shorty-hefty-exile and its failing with the following error fatal: [localhost]: FAILED! => {"reason": "Unable to retrieve file contents\nCould not find or access '/etc/ansible/roles/oracle-java/tests/debian/ubuntu.yml'"} To reproduce, clone t

[ansible-project] How to use host ranges with `ansible-playbook --limit`?

2018-01-03 Thread Frank Thommen
Hi, I assumed, that host ranges could be used with ansible-playbook's --limit as they can be used in the inventory itself. However this doesn't seem to be possible: $ ansible-playbook site.yml --limit='host[010:027]' [WARNING]: Could not match supplied host pattern, ignoring: host ERROR!

[ansible-project] In an Ansible task, what is the proper way to run a script in the background?

2018-01-03 Thread ZillaYT
Say I want to run a script in the background after my Ansible run finishes. Which of these two options is the correct way? *Option 1: Run a nohup on the Ansible task itself* - name:Run a script in the background command: nohup myscript.sh 2>&1 & where myscript.sh does something (anything) but

Re: [ansible-project] In an Ansible task, what is the proper way to run a script in the background?

2018-01-03 Thread Toshio Kuratomi
Or option three: use async:. http://docs.ansible.com/ansible/latest/playbooks_async.html If the script is something you want to run and exit after performing its tall, I think async is the most idiomatic. If the script is more like a daemon, having nohup in the script feels right to me but I can

Re: [ansible-project] In an Ansible task, what is the proper way to run a script in the background?

2018-01-03 Thread ZillaYT
Thanks, I didn't know about async, but it's NOT what I want since I do want the script to run as a daemon indeed. On Wednesday, January 3, 2018 at 3:54:23 PM UTC-5, Toshio Kuratomi wrote: > > Or option three: use async:. > http://docs.ansible.com/ansible/latest/playbooks_async.html > > > If the

[ansible-project] chmod not working

2018-01-03 Thread lpescatore via Ansible Project
HI, I have a play that SHOULD copy a file over from my server to a Windows box AND set permissions to 660 (notice I have tried both modes below separately): win_copy: src: /ansible/playbook/foo.foo dest: C:\mydir\foo.foo state: file mode: "ug+rw" OR mode: 0660 The pla

Re: [ansible-project] chmod not working

2018-01-03 Thread Matt Martz
>From what I can tell of the documentation, `win_copy` does not support a `mode` argument. It's likely just being ignored, due to how the argument parsing in windows modules is currently handled. http://docs.ansible.com/ansible/latest/win_copy_module.html On Wed, Jan 3, 2018 at 4:51 PM, lpescato

Re: [ansible-project] chmod not working

2018-01-03 Thread 'Larry Pescatore' via Ansible Project
Wow, that's something HOPEFULLY will be supported in the future. Thank you. On Wed, Jan 3, 2018 at 3:05 PM, Matt Martz wrote: > From what I can tell of the documentation, `win_copy` does not support a > `mode` argument. It's likely just being ignored, due to how the argument > parsing in window

[ansible-project] Re: potential Ansible os_image module keystone v3 compatibility issue

2018-01-03 Thread 王进
I also encountered the same problem. test environment passed, I found wrong use it again. try other endpoint ,like this ,it's OK

Re: [ansible-project] chmod not working

2018-01-03 Thread Jordan Borean
Windows does not use the standard user/group/all permissions that are in use with most unix servers so the mode option most likely will never be supported. Windows uses ACLs https://msdn.microsoft.com/en-us/library/windows/desktop/aa374872%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 to set

Re: [ansible-project] How to use host ranges with `ansible-playbook --limit`?

2018-01-03 Thread Kai Stian Olstad
On 03.01.2018 18:03, Frank Thommen wrote: I assumed, that host ranges could be used with ansible-playbook's --limit as they can be used in the inventory itself. However this doesn't seem to be possible: It's called patterns http://docs.ansible.com/ansible/latest/intro_patterns.html $ ansibl

[ansible-project] Delegate_to is throwing error "Failed to connect to the host via ssh"

2018-01-03 Thread Gopi Krishna
Hi, My hosts file: [ebs] xx.xx.xx.xx [source] xx.xx.xx.xx playbook: --- - hosts: source tasks: - name: "copy file from 147 to 149 from 141" synchronize: src: /root/gopi dest: /root/gopi delegate_to: ebs when im running this playb

Re: [ansible-project] How to use host ranges with `ansible-playbook --limit`?

2018-01-03 Thread Frank Thommen
On 04/01/18 07:11, Kai Stian Olstad wrote: On 03.01.2018 18:03, Frank Thommen wrote: I assumed, that host ranges could be used with ansible-playbook's --limit as they can be used in the inventory itself.  However this doesn't seem to be possible: It's called patterns http://docs.ansible.com/an