title: Ansible configure and make
body: <p>Configure and make not working as separate steps.</p>
  
  <pre class="lang-yaml prettyprint-override"><code>- name: configure
    command: ./configure --with-python=/usr/local/bin/python2.7
    args:
      chdir: "/usr/src/mod_wsgi-{{ mod_wsgi_version }}"
  - name: make
    command: make
    args:
      chdir: "/usr/src/mod_wsgi-{{ mod_wsgi_version }}"
  </code></pre>
  
  <p>However, when I combine them in a single command line they work fine.</p>
  
  <pre class="lang-yaml prettyprint-override"><code>- name: configure and make
    command: ./configure --with-python=/usr/local/bin/python2.7; make
    args:
      chdir: "/usr/src/mod_wsgi-{{ mod_wsgi_version }}"
  </code></pre>
  
  <p>My understanding was that configure is building a makefile and not doing something magic in the environment. Am I wrong? </p>
  
  <p>Edit:
  I got a lead, python is failing to run properly, because it requires a environment variable: LD_LIBRARY_PATH.</p>
  
  <p><strong>I found the root cause. When I install python I edit the /etc/profile but this is ignored by the ansible login. Hence the LD_LIBRARY_PATH was not getting set. I have since updated the python installer playbook to add a shell script to /etc/profile.d/</strong></p>