[ansible-project] Run role based on local facts - if variable is not defined.

2014-04-02 Thread Marcin Prączko
Good morning. I am trying using local facts for tracking version of the role, and run this role only if version increased (version kept locally within role comparing with version from local fatcs). So this is how is working: Role folder - vars/main.yml - tasks/main.yml So this is example

Re: [ansible-project] Run role based on local facts - if variable is not defined.

2014-04-02 Thread Michael DeHaan
Python (and Jinja) practices short circuit evaluation. So move the is defined test ahead of the numeric test, and you should be ok. On Wed, Apr 2, 2014 at 8:04 AM, Marcin Prączko marcin.prac...@gmail.comwrote: Good morning. I am trying using local facts for tracking version of the role,