Error - Install tomcat

30 views
Skip to first unread message

Amar Subudhi

unread,
Jul 24, 2020, 11:40:07 AM7/24/20
to Ansible Project
Please help on the below error

Ansible Codes
---
# tomcat7 role
- name: install tomcat7 from rhel-x86_64-server-6-datacenter-tomcat-grid-apps
  package:
    name: apache-tomcat-7.0.81
    when: ansible_distribution_major_version == "6"
    ignore_errors: yes
    state: present

# tomcat7 role
- name: install tomcat7 from rhel-x86_64-server-7-datacenter-tomcat-grid-apps
  package:
    name: apache-tomcat-7.0.76
    when: ansible_distribution_major_version == "7"
    ignore_errors: yes
    state: present

Error
TASK [tomcat7 : install tomcat7 from rhel-x86_64-server-6-datacenter-tomcat-grid-apps] ******************************************************************************************************************************************************
Friday 24 July 2020  11:13:06 -0400 (0:00:01.013)       0:05:50.522 ***********
fatal: [hsdm0402]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (yum) module: ignore_errors, when Supported parameters include: allow_downgrade, bugfix, conf_file, disable_gpg_check, disable_plugin, disablerepo, enable_plugin, enablerepo, exclude, install_repoquery, installroot, list, name, security, skip_broken, state, update_cache, update_only, validate_certs"}
to retry, use: --limit @/opt/hd/sh/srv/ansible/development/axs8u3p/hadoop/site.retry

Dick Visser

unread,
Jul 24, 2020, 11:44:17 AM7/24/20
to ansible...@googlegroups.com
ignore_errors is too far intended


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2c25ffaf-f296-40ea-9b83-9d333ec76bdfo%40googlegroups.com.


--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

J Hawkesworth

unread,
Jul 27, 2020, 6:04:55 PM7/27/20
to Ansible Project
Also the 'when' directive is indented too far, I think.

Try like this

- name: install tomcat7 from rhel-x86_64-server-6-datacenter-tomcat-grid-apps
 
package:
    name
: apache-tomcat-7.0.81

    state
: present
 
when: ansible_distribution_major_version == "6"
  ignore_errors
: yes


To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages