Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Error While using in ansible 2.4.1.0 #38

Open
sjkeerthi opened this issue Jan 19, 2018 · 1 comment
Open

Error While using in ansible 2.4.1.0 #38

sjkeerthi opened this issue Jan 19, 2018 · 1 comment

Comments

@sjkeerthi
Copy link

sjkeerthi commented Jan 19, 2018

Environment

OS Fedora 26
ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Nov 2 2017, 18:42:05) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]

I am trying to install with using ansible galaxy groover.tomcat on centos 7.4
from my fedora 26 machine I am trying to execute this with below playbook during the time
I get this error.

My Playbook Code

  • hosts: tomcat
    connection: local
    tasks:
    roles:
    • groover.tomcat
@sjkeerthi
Copy link
Author

sjkeerthi commented Jan 19, 2018

ERROR

TASK [silpion.util : Install EPEL] *******************************************************************************************************************
task path: /home/xxxi/xxxsetup/roles/silpion.util/tasks/main.yml:117
Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
<192.168.1.6> ESTABLISH LOCAL CONNECTION FOR USER: root
<192.168.1.6> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
The full traceback is:
File "/tmp/ansible_6BotXx/ansible_module_yum.py", line 264, in
from yum.misc import find_unfinished_transactions, find_ts_remaining

fatal: [keet]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"allow_downgrade": false,
"conf_file": null,
"disable_gpg_check": true,
"disablerepo": null,
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"installroot": "/",
"list": null,
"name": [
"https://download.fedoraproject.org/pub/epel/epel-release-latest-26.noarch.rpm"
],
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"validate_certs": true
}
},
"msg": "python2 yum module is needed for this module"
}
to retry, use: --limit @/home/xxx/my-sxy/tomcat-test.retry

cascaya pushed a commit that referenced this issue Apr 17, 2018
…cat to next

* commit 'dd49b546fbace23639de8270a76a8dc8cdbdd6bf':
  fix set() error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant