[ansible-project] Managing Zabbix Using Ansible?

2017-11-13 Thread Jon Forrest
I'm interested if there are any Ansible modules for completely (or as closely as possible) managing Zabbix. I'm aware of the modules that come with Ansible, but they appear to be quite limited, and only cover managing groups, hosts, and screens. I didn't find anything that, for example, can

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-13 Thread Soniya panwar
Hello, Can you please elaborate your tasks more? 1. In first task: you are checking if the file is exist on destination server, and if not exist you will create new directory? 2. In second task: you are saying maven repo created but in this task you are coping your files src to destination.

[ansible-project] Re: Windows 2008 R2 - WinRM and disabling TLS 1.0

2017-11-13 Thread Yinidu Ponweera
Hi Chris, I am having the same issue. Were you able to work around this -yinidu On Tuesday, January 26, 2016 at 10:53:30 AM UTC+8, Chris Carlson wrote: > > Recently, I've undertaken the task of PCI Compliance for several servers I > manage. One of the recurring recommendations is to disable

[ansible-project] Re: stop task on all hosts when task is finished in any of them

2017-11-13 Thread Ivo Jimenez
Forgot to mention that the reason what the above doesn't work is because the `rescue` tasks are executed only after _all_ the hosts have finished executing the task On Monday, November 13, 2017 at 3:49:01 PM UTC-7, Ivo Jimenez wrote: > > I've been trying to find a way of accomplishing this

Re: [ansible-project] Running ansible script on same host multiple times?

2017-11-13 Thread Kai Stian Olstad
On Monday, 13 November 2017 18.40.50 CET SHUBHAM JAIN wrote: > *Thank you so much kai. your solution made my day and it is totally great > and worked out finally.* > > One more Question - Can we use dictionary in inventory hosts section like > below and access it in task using *with_dict* and

Re: [ansible-project] HowTo run tasks only after a snapshot was successfully taken?

2017-11-13 Thread Kai Stian Olstad
On Sunday, 12 November 2017 20.31.36 CET Jörg Kastning wrote: > Am 12.11.2017 um 15:23 schrieb Kai Stian Olstad: > > > > Then you could use "register: status_snapshot" on this task, and check it's > > status in the next play. > > Ok, I'll try that. Since one of the common return values of

[ansible-project] Re: Is it possible to copy a file to a newly created ec2 instance in the same playbook?

2017-11-13 Thread ddrake2012
Yes you can use the add_host module to create an in-memory group. I am having weird issues with EC2 instances that I just posted about ( https://groups.google.com/forum/#!topic/ansible-project/jqRDPGqUof8) but I am able to run 2 commands on the newly provisioned hosts. You need something like

[ansible-project] Is it possible to copy a file to a newly created ec2 instance in the same playbook?

2017-11-13 Thread Jeff Parrish
I'm trying to start a marketplace instance and secure it all in the same playbook. That requires copying some files and running a provisioning script. I'd prefer to keep all that in a single playbook, to reduce chances of error and keep it semi-atomic. It doesn't seem to be possible even with

[ansible-project] Ansible fails to connect to newly provisioned EC2 on 3rd task after successful running first 2 tasks

2017-11-13 Thread ddrake2012
I have a playbook that creates EC2 instances and adds them to an in memory group using the add_host module. I am then able to connect to the in memory group and perform two successful commands before a third fails. I am seeing this problem just running the same file module to create

Re: [ansible-project] Running ansible script on same host multiple times?

2017-11-13 Thread SHUBHAM JAIN
*Thank you so much kai. your solution made my day and it is totally great and worked out finally.* One more Question - Can we use dictionary in inventory hosts section like below and access it in task using *with_dict* and *item.key* and *item.value* as i have tried this but didn't get success

Re: [ansible-project] Windows 10 Ubuntu | Ansible issue

2017-11-13 Thread 'J Hawkesworth' via Ansible Project
Seems to work if you use a full path. Also when you run bash.exe from a CMD window it executes the command in the current dir by looks of things in wsl cat test.sh #!/bin/bash ansible 10, -m win_ping ## end of test.sh in CMD prompt: bash -c "/home/jon/test.sh" WIN10TEST| SUCCESS => {

Re: [ansible-project] Re: Ansible playbook yaml syntax errors

2017-11-13 Thread Kai Stian Olstad
On Monday, 13 November 2017 01.10.46 CET Veera wrote: > So , was indent was the only problem I had? > if so , the service module indent is not the exact one in my program > but still it works ? The order of the lines on the same indentation doesn't matter and some directive is optional

Re: [ansible-project] Ansible service module

2017-11-13 Thread Dick Davies
Look at the wait_for module, it should be able to help you if you need to, uh, wait for a specific state. On 13 November 2017 at 07:27, Harish Singh <08harishsi...@gmail.com> wrote: > Hey !! > > If I am working with ansible service module, if in case my tomcat take time > more then min. Or 2