[ansible-project] Ansible Hands-On Beginners Tutorial

2017-05-25 Thread Mumshad Mannambeth
system with Ansible. Also there are coding exercises to get user familiar with YAML. Check it out here and please share: https://www.udemy.com/learn-ansible Appreciate your feedback on improving the course. Thanks Mumshad Mannambeth mmums...@gmail.com -- You received this message because you

[ansible-project] Playable - Ansible UI for generating Playbooks and Custom Modules and testing them

2017-07-17 Thread Mumshad Mannambeth
and Server logs from the Admin tab Thanks Mumshad Mannambeth -- 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+unsubscr...@googl

[ansible-project] Re: am new to ansible need assistance

2017-07-18 Thread Mumshad Mannambeth
Hi Mr.Kannappan, Please check the course here: https://www.udemy.com/learn-ansible/ You will get a good understanding of basics of YAML and Ansible as well as some hands-on experience. Thanks Mumshad On Sunday, 16 July 2017 14:16:01 UTC-4, Kannappan M wrote: > > Hi Admins and Friends > > A

[ansible-project] Re: how to debug an ansible module

2017-07-18 Thread Mumshad Mannambeth
Hi Margin, I usually use an IDE like PyCharm for this. I have detailed it here: https://github.com/mmumshad/debug-ansible-modules-pycharm Thanks Mumshad On Thursday, 13 July 2017 13:59:59 UTC-4, Margin Hu wrote: > > Hi Guys, > >how to debug an ansible module ? I find > http://docs.ansible

[ansible-project] Re: PyCharm & Modules

2016-09-05 Thread Mumshad Mannambeth
Hi Smith, Found any good way to accomplish this? Debugging Ansible modules via PyCharm debugger? On Wednesday, 29 October 2014 12:52:11 UTC-4, Tennis Smith wrote: > > Hi, > > Has anyone found a good way to debug ansible modules via the PyCharm > debugger? > > -T > -- You received this messa

[ansible-project] Re: PyCharm & Modules

2016-09-06 Thread Mumshad Mannambeth
I figured out a way to debug using PyCharm remote debugger. I have written down the steps here if anyone else needs info: https://github.com/mmumshad/debug-ansible-modules-pycharm Thanks Mumshad On Monday, 5 September 2016 22:10:30 UTC-4, Mumshad Mannambeth wrote: > > Hi Smith, > &g

[ansible-project] Script module in windows looks for /usr/bin/python

2016-09-15 Thread Mumshad Mannambeth
I am trying to run a basic script on a windows host using ansible. Why is it looking for Python on windows? Do we need to have Python installed on windows to run a script? : TASK [setup] *** <10.xx.xx.108> ESTABLISH WINRM CONNE

[ansible-project] Re: Script module in windows looks for /usr/bin/python

2016-09-15 Thread Mumshad Mannambeth
he script module (if the > script lives on the control host and you want to push it over). In > devel/2.2+ you can use win_shell or win_command, but those modules are new > to the (yet-to-be-released) Ansible 2.2. > > On Thursday, September 15, 2016 at 7:25:45 PM UTC-7, Mumshad Mannambe

[ansible-project] Will it work - async + poll + with_items + include ?

2016-09-18 Thread Mumshad Mannambeth
Hi, I am trying to run a long running task asynchronously and monitor results at the end. (My target are not windows. I am just passing in windows system information to target linux host) My tasks don't run asynchronously. They run one after another. I include another file with two tasks in it

[ansible-project] Callback plugin to list tasks that were not run

2016-10-17 Thread Mumshad Mannambeth
Does the methods in a callback plugin expose any kind of information which lists all tasks that were not run because the playbook failed at a step. For example, I have Tasks 1 to 10. The playbook ended due to an error on Task 5. Can I get a list of remaining tasks marked as not_run? Thanks Mums

Re: [ansible-project] Callback plugin to list tasks that were not run

2016-10-17 Thread Mumshad Mannambeth
Thank you! I am trying to find a good way to restart playbook were it left off after a failure. start-at-task doesn't help if there are multiple tasks with the same name. Are there any alternatives? On Monday, 17 October 2016 23:38:18 UTC-4, Brian Coca wrote: > > not currently, since tasks can b

[ansible-project] Pass a dynamic dictionary as parameter

2016-11-30 Thread Mumshad Mannambeth
How can I create and pass a dynamic dictionary as a module parameter. I have a custom module that accepts parameters: - name: 'Custom module' custom_module: parameter1: 'Some Value' parameter2: '{{ var1 }}' : '{{ value

[ansible-project] Re: Pass a dynamic dictionary as parameter

2016-11-30 Thread Mumshad Mannambeth
Thank you very much!! On Wednesday, 30 November 2016 12:24:41 UTC-5, Ted Zlatanov wrote: > > On Wed, 30 Nov 2016 09:02:45 -0800 (PST) Mumshad Mannambeth < > mmum...@gmail.com > wrote: > > MM>with_dict: > MM> "{'{{var1}}&

[ansible-project] Re: using failed_when: with changed_when:

2016-11-30 Thread Mumshad Mannambeth
I would like to set changed_when = not failed_when or vice versa. Is that possible? On Sunday, 18 January 2015 12:07:25 UTC-5, Mark Casey wrote: > > Thanks; I think I was a little vague, sorry. I'm actually already using > them together to evaluate the return output of a script and determine wha

[ansible-project] Right way to wait for service start

2016-12-05 Thread Mumshad Mannambeth
Hi, I would like to restart a server and wait till the services start up. I can us the wait_for module to wait for ports to be up, but how can I wait for the services to be up? The service modules seem to start,stop or restart service, but I don't want to do any of these operations. Only wait t

Re: [ansible-project] Possible to have --list-tasks be aware of variable names?

2016-12-11 Thread Mumshad Mannambeth
Hi Michael, Any update on this? Has this been implemented since the original post? or are there any plans now? Thanks Mumshad On Sunday, 21 September 2014 15:50:32 UTC-4, Michael DeHaan wrote: > > Technically possible, but perhaps a little frustrating to implement :) > > We'd be happy if someon

[ansible-project] Ansible to output which host a task is running on

2016-12-24 Thread Mumshad Mannambeth
Ansible prints information whenever a task starts, but doesn't print information on which host it is running currently. is there a way to make it print this information. may be with modification to Callback plugins? I looked at v2_playbook_on_task_start call but was not able to get host informa

[ansible-project] Re: Ansible to output which host a task is running on

2016-12-31 Thread Mumshad Mannambeth
k plugin is used after a play is finished. > Good question tho. Don't know how. > > On Saturday, December 24, 2016 at 9:24:34 PM UTC+1, Mumshad Mannambeth > wrote: >> >> Ansible prints information whenever a task starts, but doesn't print >> information on wh

[ansible-project] ipaddr filter returns true for 10.247

2017-01-10 Thread Mumshad Mannambeth
Hi, I am trying to use the ipaddr ir ipv4 filter to test if a string is a valid ip address. 10.247.1.1 -> True 10.247.1. -> False 10.247 -> True -> 10.247.0.0 The last condition returns True even if the text only contains a portion of IP Address. Is there a way to force the filter to