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

2016-11-21 Thread Brian Coca
use the built in: - debug: var=ansible_version -- 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...@googlegrou

[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