Last active
June 8, 2023 16:13
-
-
Save jgornick/9962043 to your computer and use it in GitHub Desktop.
Ansible: ./configure, make, make install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, this worked for me. Very helpful, thankyou