I need to install java on one of my VMs running SUSE Linux using ansible.
Below is the playbook code I am using:
- name: Download Java
become_user: "{{user}}"
command: "wget -q -O {{java_archive}} --no-check-certificate --no-cookies --header 'Cookie: oraclelicense=accept-securebackup-cookie' {{download_url}} creates={{java_archive}}"
- name: Fix ownership
become_user: "{{user}}"
file: state=directory path={{java_name}} owner={{user}} group={{user}} recurse=yes
- zypper: name={{download_folder}}/jdk-8u5-linux-x64.rpm become_user={{user}} state=present
- name: Clean up
become_user: "{{user}}"
file: state=absent path={{java_archive}}
The problem I'm facing is that the installer needs some interactions while installing. How do I automate that? Or there is some other way to achieve this?
As requested in comments, following message appears when I try to install without ansible.
