I am writing a playbook for automating anaconda installation . I am using Ansible expect module to answer the installation prompts. Here is my code.
---
- hosts: all
become: yes
become_method: sudo
gather_facts: true
tasks:
- name: Run the installer Anaconda
expect:
command: bash ~/Downloads/Anaconda3-2019.03-Linux-x86_64.sh
responses:
"Please, press ENTER to continue" : "\n"
"More" : " "
" Do you accept the license terms" : "yes"
"Press ENTER to confirm the location" : "\n"
"Do you wish the installer to initialize Anaconda3 by running conda init": "yes"
Here the error I am getting.
TASK [Run the installer Anaconda] **********************************************
fatal: [192.168.6.230]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (expect) module: Do you accept the license terms, Do you wish the installer to initialize Anaconda3 by running conda init, More, Please, press ENTER to continue, Press ENTER to confirm the location Supported parameters include: chdir, command, creates, echo, removes, responses, timeout"}