tripl3inf
1/5/2015 - 4:53 AM

configure-make-make-install.yaml

# This works
- name: Install unixODBC
  command: sudo {{ item }} chdir="/tmp/{{ mysql_odbc_unixodbc_url | basename | replace('.tar.gz', '') }}"
  with_items:
    - ./configure --prefix=/usr/local
    - make
    - make install    

# This _doesn't_ work
# Why doesn't the chdir option get recognized?
- name: Install unixODBC
  command: 
    chdir: "/tmp/{{ mysql_odbc_unixodbc_url | basename | replace('.tar.gz', '') }}"
    free_form: "sudo {{ item }}"
  with_items:
    - ./configure --prefix=/usr/local
    - make
    - make install