How to make a library with custom params like ./configure

10 views
Skip to first unread message

gitted

unread,
Dec 19, 2017, 9:28:58 PM12/19/17
to Ansible Project
Hi,

A manual install of the library is like this:

# $ tar -xzf freetds-1.00.21.tar.gz
# $ cd freetds-1.00.21
# $ ./configure --prefix=/usr/local --with-tdsver=7.3
# $ make
# $ make install

I have this with ansible, but I'm not sure how to do the ./configure --prefix and --with-tdsver part.  Any tips?

- name: Install tinytds
  make: chdir=/root/freetds-1.00.21 target=install



Message has been deleted

alanp...@gmail.com

unread,
Dec 19, 2017, 11:25:20 PM12/19/17
to Ansible Project
I haven't used it myself, but there is a make module:


You'll probably use the shell module to do the configure with your specific flags.

Kai Stian Olstad

unread,
Dec 20, 2017, 12:59:17 AM12/20/17
to ansible...@googlegroups.com
I don't think there is a module for configure so you need to use the
shell or command module.

- shell: ./configure --prefix=/usr/local --with-tdsver=7.3
args:
chdir: /absolute/path/to/freetds-1.00.21

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages