Re: [ansible-project] jinja template not evaluating conditional as expected

2020-04-03 Thread Dave York
That worked! Thanks Stefan! I swear the other way worked for me once, but I like your solution is more graceful. -- 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

Re: [ansible-project] jinja template not evaluating conditional as expected

2020-04-02 Thread Stefan Hornburg (Racke)
On 4/3/20 4:58 AM, Dave York wrote: > I have a playbook that calls win_template: >   - name: Template domain.xml > win_template: >   src: 'domain.xml.jinja' >   dest: 'e:\domain.xml' > > Within the template I have this section below.  I have confirmed (with a > debug statement in the

[ansible-project] jinja template not evaluating conditional as expected

2020-04-02 Thread Dave York
I have a playbook that calls win_template: - name: Template domain.xml win_template: src: 'domain.xml.jinja' dest: 'e:\domain.xml' Within the template I have this section below. I have confirmed (with a debug statement in the play above) that enable_target is set to 'true'.