Re: [ansible-project] WHEN CONDITION

2017-02-07 Thread DHAVAL JAISWAL
Thanks !! It works, post adding set_fact: current_image_state="{{ image_state.stdout }}". On Tue, Feb 7, 2017 at 5:34 PM, Johannes Kastl <m...@ojkastl.de> wrote: > On 06.02.17 20:00 DHAVAL JAISWAL wrote: > > Tried below one. However, when condition is not correctly ev

Re: [ansible-project] WHEN CONDITION

2017-02-06 Thread DHAVAL JAISWAL
ct_module.html > > > > []s, > Rodrigo B Brasil > > On Wed, Feb 1, 2017 at 4:16 PM, DHAVAL JAISWAL <dhava...@gmail.com> wrote: > >> Where i can set this variable so that i can compare it in where >> condition. >> >> Any small test sc

Re: [ansible-project] WHEN CONDITION

2017-02-01 Thread DHAVAL JAISWAL
dium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Thanks & Regards Dhaval Jaiswal -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from thi

Re: [ansible-project] store the output of math operator

2017-02-14 Thread DHAVAL JAISWAL
solved it. On Tue, Feb 14, 2017 at 6:00 PM, bablu wrote: > >- name: Set the output of the this state > set_fact: A="{{image_avl.stdout}}" -- this is coming from > the previous registered output > tags: avl1 > >- name: Define our static value for

Re: [ansible-project] Abort executing playbook if condition not match

2017-02-14 Thread DHAVAL JAISWAL
I tried with fail and it works. Is this works when we set any_errors_fatal: true On Tue, Feb 14, 2017 at 10:25 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 14. feb. 2017 17:43, bablu wrote: > >> >> If condition fails it should not go for the next step and exit from

Re: [ansible-project] store the output of math operator

2017-02-14 Thread DHAVAL JAISWAL
oming from the inventory tags: num2 - name: difference shell: C=`expr "{{image_avl.stdout}}" - {{retain}}` register: num_del tags: del1 - debug: var="num_del" On Tue, Feb 14, 2017 at 8:58 PM, Dick Visser <dick.vis...@geant.org> wrote: > On 14

Re: [ansible-project] Re: Output Failed even if command gets executed successfully

2017-02-09 Thread DHAVAL JAISWAL
the web visit https://groups.google.com/d/ > msgid/ansible-project/12a10d0e-c6e9-4d1e-921f-69fb715b3d30%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/12a10d0e-c6e9-4d1e-921f-69fb715b3d30%40googlegroups.com?utm_medium=email_source=footer> > . > > For m

Re: [ansible-project] Re: Output Failed even if command gets executed successfully

2017-02-10 Thread DHAVAL JAISWAL
It works !! On Fri, Feb 10, 2017 at 12:12 AM, Johannes Kastl <m...@ojkastl.de> wrote: > On 09.02.17 19:36 DHAVAL JAISWAL wrote: > > I want to use the failed_when in following ad-hoc command to ignore > > the error. Is there any other alternative can be handle in ad hoc >

[ansible-project] Command not working on remote host through shell module or playbook

2016-09-20 Thread DHAVAL JAISWAL
Ansible version: ansible 1.9.2 I am unable to execute following command from shell module neither through playbook. It could be any command at the run time. While reading found $,% need the escape string. Tried but not working. Is there any way/module through which i can run any command on the

[ansible-project] pipeline (|) not working with the -e option

2016-09-16 Thread DHAVAL JAISWAL
Why extra variables (-e) ignoring commands after pipeline ("|") while running playbook with -e options. Following playbook giving output till "netstat -an" only. I want the output of this "netstat -an | grep 8080" or any command which can be run at the run time on remote host. ansible-playbook