[ansible-project] Ansible Fails to Restart Jetty on a remote host

2019-09-25 Thread Madushan Chathuranga
Hi All, I'm trying to restart jetty using an ansible script bellow is a snippet from my script --- - hosts: all tasks: - name: start jetty command: sh jetty.sh restart args: chdir: /apps/servers/jetty/bin my inventory file is 10.0.18.225 ansible_user=appusr

[ansible-project] Ansible AWS Modules for CloudWatch

2018-10-17 Thread Madushan Chathuranga
Hi All, Is there an ansible module available to search aws cloud watch logs and events. https://docs.ansible.com/ansible/2.5/modules/cloudwatchlogs_log_group_facts_module.html#cloudwatchlogs-log-group-facts-module This module can return log group details. What i'm looking is to search logs in

[ansible-project] Difference in ec2 module and ec2_instance module.

2018-10-15 Thread Madushan Chathuranga
Hi All, What is the difference between ec2 module and ec2_instance module. Why there are two modules to create an ec2. https://docs.ansible.com/ansible/2.5/modules/ec2_instance_module.html https://docs.ansible.com/ansible/2.5/modules/ec2_module.html

Re: [ansible-project] Use password protected private key for an ansible script

2018-09-12 Thread Madushan Chathuranga
ssword to a protected SSH key)? > Or is it used inside a task, to executed on a remote host (i.e. > *after* you've connected to it)? > > Dick > > On 12 September 2018 at 12:57, Madushan Chathuranga > > wrote: > > Hi All, > > > > Is it possible to pr

[ansible-project] Use password protected private key for an ansible script

2018-09-12 Thread Madushan Chathuranga
Hi All, Is it possible to provide the password of the private key on the command line extra vars or using the inventory. In the inventory we can provide the private key but not the password? can not use --ask-pass in the command since it would prompt for the password to be user provided. Needs

[ansible-project] Ansible Do Until Loop

2018-05-22 Thread Madushan Chathuranga
Hi All, I'm using ansible version 2.5.0 I'm trying execute a task with an Do Until Loop. http://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#do-until-loops Is it possible to run this task with an infinite number of retries ? with out defying the number of retries. e.g: un

Re: [ansible-project] Convert an XML to JSON using ansible

2018-05-09 Thread Madushan Chathuranga
Thanks this solution works perfectly well. Just for the record this piece of code needs python package python-xmltodict installed. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving email

[ansible-project] Re: Convert an XML to JSON using ansible

2018-05-08 Thread Madushan Chathuranga
Hi, Thank you very much for the response. First let me explain what I'm trying to do here and then what I have done so far. I'm trying to call and rest api which I'm using URI module to do that. Success response of this api returns a xml response not json. But my end user needs the output from

[ansible-project] Convert an XML to JSON using ansible

2018-05-08 Thread Madushan Chathuranga
Hi, Is there a filter or any work around to convert an XML to JSON using ansible? Thanks. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+u

[ansible-project] Ansible regex filter along with_items

2018-05-02 Thread Madushan Chathuranga
*Hi,* *I'm kinda new to ansible seeking helop with below scenario. what I'm trying to do is iterate over the array '*access_key_ids*' and run regex_search filter. for the regex_search filter argument is 'item' which is the variable from with_items. It does not work this way below is what I

[ansible-project] Ansible include tasks and get response.

2018-05-01 Thread Madushan Chathuranga
Hi, Is it possible to execute a another yaml file with in a yaml file (import or include) passing arguments and register its output? Or else return it's output and assign to a variable Thanks. -- You received this message because you are subscribed to the Google Groups "Ansible Project" gro