have a look at this ansible-playbook. It should get your job done.
- name: Install
ibmim_installer:
state: present
src: /some/dir/install/
logdir: /tmp/im_install.log
- name: Uninstall
ibmim_installer:
state: absent
dest: /opt/IBM/InstallationManager