Hi,

Prior to Ansible 1.7.2 I did not need to add slashes to the end of each 
line. Since this version it complains if I don't

This causes a problem as different environments have different versions of 
ansible. Some 1.7, some 1.7.2

Is there a way to query the version of ansible?

For example

  - name: Generate permissions
    tags:
      - db
      - data
    shell: >
      chdir="{{ release_dir }}/some_app"
        tclsh {{ genperms }} *\   <---------*
        -format LOAD *\*
        -output_dir "{{ release_dir }}/reference/db" *\*
        "{{ conf_dir }}//box_specific/some_app.cfg"

I plan to move some of these shell commands into a module which would sort 
this, but I need solution that doesn't rely on that.

Thanks

James

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bdfe4515-bcaf-451e-9bb2-4b97397a1dcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to