title: How to set environment variables in ansible playbook
body: <p>I am trying to set environment variables through ansible playbook to install gnucobol with vbisam. But that variables are not getting set while executing playbook.</p>
  
  <pre><code> name: Setting variables for CPPFLAGS
   shell: "echo $CPPFLAGS"
   environment:
    CPPFLAGS: -I/opt/vbisam-2.0/include
  
   name: Setting variables for LDFLAGS
   shell: "echo $LDFLAGS"
   environment:
    LDFLAGS: -L/opt/vbisam-2.0/lib
  
   name: Setting variables for LD_LIBRARY_PATH
   shell: "echo $LD_LIBRARY_PATH"
   environment:
    LD_LIBRARY_PATH: /opt/vbisam-2.0/lib:${LD_LIBRARY_PATH}
  </code></pre>
  
  <p>Can some one help me to fix the issue.</p>