Problem: Run Ansible playbook got "ImportError: No module named yum" on Fedora 23
TASK: [install nginx] *********************************************************
failed: [testserver] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1450305639.99-79628816442419/yum", line 27, in <module>
import yum
ImportError: No module named yum
OpenSSH_6.8p1, OpenSSL 1.0.1k-fips 8 Jan 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
Shared connection to x.x.x.x closed.
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/web-notls.retry
testserver : ok=1 changed=0 unreachable=0 failed=1
Solution:
On the testserver:
# dnf install yum
Note :
# pip list | grep ansible
ansible (1.9.4)
No comments:
Post a Comment