Re: [ansible-project] include when not work

2015-09-28 Thread Brian Coca
the only effective difference is less output

-- 
Brian Coca

-- 
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...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nsG0ekqxDe50-ooaLkuHdf5D0XgMDhroxJxH0n3h27qQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] include when not work

2015-09-28 Thread Steve Kieu
I guess it is time to try version 2 then. 

Thanks



On Monday, September 28, 2015 at 10:36:52 PM UTC+10, Brian Coca wrote:
>
> The 'when' is being applied to the included tasks so they should all 
> appear as skipped, before 2.0 there is no way to prevent the include 
> itself from happening. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e87e6d15-3aef-40d7-8dc2-434007ec32ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] include when not work

2015-09-28 Thread Brian Coca
The 'when' is being applied to the included tasks so they should all
appear as skipped, before 2.0 there is no way to prevent the include
itself from happening.



-- 
Brian Coca

-- 
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...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nab-jBWYA3XLSpn-gHQ-NhQE-x-_BX%2B7wh5n54-NxL4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] include when not work

2015-09-27 Thread Steve Kieu
Hi team,

I have something like this in my tasks file.

- name: run post sync files
  include: "{{inventory_dir}}/../tasks/post-sync-files.yml"
  when: POST_SYNC_FILE == 'yes'

Even the value of POST_SYNC_FILE is 'no' it still include the yml file and 
run . Inside the yml file there are bunch of tasks whihc also use when as 
well but not using the above variables.

Not sure what is wrong with this?

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+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/286f7586-6430-4842-afe4-58838251da17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.