Hi folks,
I am facing a rather peculiar issue. I am trying to build zlib library on an Ubuntu 16.04 server using Ansible 2.2.1.0. Here is what my playbook (role) looks like,
`
- name: Build Zlib.
command: “{{ item }}”
args:
chdir: “{{ zlibBuildDir }}”
with_items:
-
“./configure”
-
“make”
-
“make install”
register: commandStatus -
name: Display status
debug:
msg:“status → {{ commandStatus }}”
`
The problem I am facing is that when I run these commands manually, they all run successfully. But when executing with the Ansible, it executes the configure, make and make install commands successfully but then hangs and does not move to the next task at all. In the above code there is a dummy task “Display status” but it never gets executed and playbook hangs there indefinitely.
I have also tried running the commands using the shell module, but got the same result.
I have attached the console logs with maximum verbosity. I have to manually do “Ctrl+C” to free the terminal. Has anyone else faced this issue?
Thanks in advance.
-Sania