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

**URL:** <https://forum.ansible.com/t/how-to-make-a-library-with-custom-params-like-configure/26335>\
**Category:** Ansible Project\
**Created:** [December 20, 2017, 2:28am UTC](https://forum.ansible.com/t/how-to-make-a-library-with-custom-params-like-configure/26335 "2017-12-20T02:28:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitted](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gitted](https://forum.ansible.com/u/gitted)\
**Post date:** [December 20, 2017, 2:28am UTC](https://forum.ansible.com/t/how-to-make-a-library-with-custom-params-like-configure/26335/1 "2017-12-20T02:28:58Z")

</div>

Hi,

A manual install of the library is like this:

# $ wget [http://www.freetds.org/files/stable/freetds-1.00.21.tar.gz](http://www.freetds.org/files/stable/freetds-1.00.21.tar.gz)

# $ 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

---

<div class="post-metadata">

**Author:** ![alanpassel7](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@alanpassel7](https://forum.ansible.com/u/alanpassel7)\
**Post date:** [December 20, 2017, 4:25am UTC](https://forum.ansible.com/t/how-to-make-a-library-with-custom-params-like-configure/26335/2 "2017-12-20T04:25:20Z")

</div>

I haven’t used it myself, but there is a make module:

[http://docs.ansible.com/ansible/latest/make\_module.html](http://docs.ansible.com/ansible/latest/make_module.html)

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

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [December 20, 2017, 5:59am UTC](https://forum.ansible.com/t/how-to-make-a-library-with-custom-params-like-configure/26335/3 "2017-12-20T05:59:02Z")

</div>

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  
&nbsp;&nbsp;&nbsp;args:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chdir: /absolute/path/to/freetds-1.00.21
