[ansible-project] find out the ansible version within ansible without shell/cmd?

2016-11-20 Thread nusenu
Hi, is there a better way for this than to use shell+register? - name: get ansible version shell: ansible --version|head -1|cut -d" " -f2 delegate_to: 127.0.0.1 register: ansibleversion thanks, nusenu -- You received this message because you are subscribed to the Google Groups

[ansible-project] A "first time" unexpected templating error - what did I do?

2016-11-20 Thread burns498
Hello - Assistance requested. I believe I've coded a nasty bug into my ansible playbook and I'm not sure how to unravel it. In my observations, the code throws an "Unexpected templating type error occurred" whenever I *first *run a task. All subsequent runs do not throw the error again, even

[ansible-project] Re: Wrapping roles inside blocks to catch failures

2016-11-20 Thread tinyzais
Would like to do the same trick. Have you found any workaround? On Monday, December 7, 2015 at 7:15:02 PM UTC+3, David Moreau Simard wrote: > > I love the idea around the new block > feature in > Ansible 2. > > The example in the