# Using make to install

**URL:** <https://forum.ansible.com/t/using-make-to-install/21558>\
**Category:** Ansible Project\
**Created:** [May 25, 2016, 6:28am UTC](https://forum.ansible.com/t/using-make-to-install/21558 "2016-05-25T06:28:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [May 25, 2016, 6:28am UTC](https://forum.ansible.com/t/using-make-to-install/21558/1 "2016-05-25T06:28:42Z")

</div>

Hello,

I am trying to install perl module for nagiosgraph-1.5.2 with ansible

which can be installed manually with three steps  
1\> perl Makefile.PL  
2\> gmake  
3\> gmake install

afetr 3\> gmake install nagiosgraph asking to confirm path where its getting installed. manually we keep pressing enter and finally its installed

Destination directory (prefix)? [/usr/local/nagiosgraph]

Location of configuration files (etc-dir)? [/usr/local/nagiosgraph/etc]

Location of executables? [/usr/local/nagiosgraph/bin]

But in ansible it is getting stuck in 3rd step as its waiting for the inputs , how should this be handled?

Ansible task is as below:

- name: Install nagiosgraph-1.4.4.tar.gz after untar

shell: “{{ item }}”

with\_items:

- perl Makefile.PL

- gmake

- gmake install

args:

chdir: /tmp/{{build\_name}}/{{binary}}/RHEL6\_64Bit-Install/{{dependencies}}/nagiosgraph-1.4.4/

Thanks in advance,

Mona G

---

<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:** [May 25, 2016, 8:22am UTC](https://forum.ansible.com/t/using-make-to-install/21558/2 "2016-05-25T08:22:35Z")

</div>

Run gmake install with expect  
[https://docs.ansible.com/ansible/expect\_module.html](https://docs.ansible.com/ansible/expect_module.html)
