Re: [ansible-project] Conditional Variable Prompt using when

2015-10-02 Thread Chris Kerr
This seems to have sorted it! lib_dir_version: "{{ (version_no == '12')|ternary('12','11') }}" single quoted the value '12' Brian Thanks for the heads up - Pointed me properly in the right direction Thank you! Chris On Friday, 2 October 201

Re: [ansible-project] Conditional Variable Prompt using when

2015-10-02 Thread Chris Kerr
Thanks for the response Brian So far I have changed the syntax to the following: (Had to wrap the version_no == 12 in ( ) to supress `False` passing through. lib_dir_version: "{{ (version_no == 12)| ternary('12','11') }}" If I enter 11 in my prompt - I get the expected echo of echo "My lib di

[ansible-project] Conditional Variable Prompt using when

2015-10-01 Thread Chris Kerr
According to http://docs.ansible.com/ansible/playbooks_variables.html " the when conditional can also be used with variables" However here is my issue with it on ansible-1.9.2-1. I'm setting a vars_prompt for version number. When running through it, i'm specifying Version 11. - name: "ve

[ansible-project] - Include Help. Include at start of playbook

2015-09-29 Thread Chris Kerr
Hi all I need some help with this. What I require is the start of my elk playbook to call another playbook called (Katello) Whenever i run the playbook with the include at the start - It Ignores any tasks underneath it and ends. I've tried this every which way and am at a loss. How can I get t