Running TUI commands from a shell

I’m in the process of trying to run the cloudera installation like so from a task:

`

  • name: download cloudera cluster manager installer

get_url: url=http://archive.cloudera.com/cm5/installer/5.3.6/cloudera-manager-installer.bin dest=/tmp mode=755 force=yes
when: “‘hbase-master’ in group_names”

  • name: silently install cloudera cluster manager

shell: /tmp/cloudera-manager-installer.bin --i-agree-to-all-licenses --noprompt --noreadme --nooptions
when: “‘hbase-master’ in group_names”

`

However when I attempt to do this I’m running into this error:
`

TASK [hbase-cdh : silently install cloudera cluster manager] *******************
fatal: [dev09-ost-hivetest-c-hb01]: FAILED! => {“changed”: true, “cmd”: “/tmp/cloudera-manager-installer.bin --i-agree-to-all-licenses --noprompt --noreadme --nooptions”, “delta”: “0:00:00.030901”, “end”: “2016-01-12 14:31:40.785974”, “failed”: true, “rc”: 22, “start”: “2016-01-12 14:31:40.755073”, “stderr”: “\n\n\nPANIC\n Failed to start GUI. Is your download incomplete or corrupt?”, “stdout”: “”, “stdout_lines”: , “warnings”: }

PLAY RECAP *********************************************************************
`

If I run it manually it works fine, looking like this:

Assume it’s an issue with the terminal type that Ansible is attempting to use and it not being able to support the UI elements that are required in the TUI above.

Is there any way I can work around this? I did not see any switches to the above installer that allowed me to do a completely silent install, foregoing the display of the TUI.