Ansible: ImportError : 2.1์—์„œ 2.2๋กœ ์—…๋ฐ์ดํŠธ ํ•œ ํ›„ _text๋ผ๋Š” ๋ชจ๋“ˆ์ด ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2016๋…„ 11์›” 22์ผ  ยท  2์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: ansible/ansible

๋ฌธ์ œ ์œ ํ˜•

  • ๋ฒ„๊ทธ ์‹ ๊ณ 
๊ตฌ์„ฑ ์š”์†Œ ์ด๋ฆ„

  • Ansible
ANSIBLE ๋ฒ„์ „
Name        : ansible
Arch        : noarch
Version     : 2.2.0.0
Release     : 3.el6
Size        : 22 M
Repo        : installed
From repo   : epel-testing
Summary     : SSH-based configuration management, deployment, and task execution system
URL         : http://ansible.com
License     : GPLv3+
๊ตฌ์„ฑ
inventory      = /etc/ansible/hosts
remote_tmp     = $HOME/.ansible/tmp
pattern        = *
forks          = 5
poll_interval  = 15
sudo_user      = drone
transport      = smart
module_lang    = C
gathering = implicit
host_key_checking = False
sudo_exe = sudo
timeout = 10
log_path = /var/log/ansible.log
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
display_skipped_hosts = True
action_plugins     = /usr/share/ansible_plugins/action_plugins
callback_plugins   = /usr/share/ansible_plugins/callback_plugins
connection_plugins = /usr/share/ansible_plugins/connection_plugins
lookup_plugins     = /usr/share/ansible_plugins/lookup_plugins
vars_plugins       = /usr/share/ansible_plugins/vars_plugins
filter_plugins     = /usr/share/ansible_plugins/filter_plugins
fact_caching = memory
[privilege_escalation]
[paramiko_connection]
[ssh_connection]
pipelining = True
scp_if_ssh = True

OS / ํ™˜๊ฒฝ
  • Red Hat Enterprise Linux Server ๋ฆด๋ฆฌ์Šค 6.8 (Santiago)
์š”์•ฝ
์žฌํ˜„ ๋‹จ๊ณ„

Update from ansible 2.1.0.0 to 2.2 by YUM from the epel-testing repo.
์˜ˆ์ƒ ๊ฒฐ๊ณผ

Ansible ansible-2.2.0.0-3.el6.noarch๊ฐ€ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์‹ค์ œ ๊ฒฐ๊ณผ

ansible --version
Traceback (most recent call last):
  File "/usr/bin/ansible", line 46, in <module>
    from ansible.module_utils._text import to_text
ImportError: No module named _text

affects_2.2 bug

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์ถ”๊ฐ€ ๋””๋ฒ„๊น…์„์œ„ํ•œ ํžŒํŠธ์ฒ˜๋Ÿผ-์ด๊ฒƒ์€ / usr / bin / ansible์ด ansible python ๋ชจ๋“ˆ์˜ ์ด์ „ ๋ฒ„์ „์„ ์ฐพ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์„ ์ฐพ์œผ๋ ค๋ฉด ์‹œ์Šคํ…œ์„ ๋‘˜๋Ÿฌ๋ณด์•„์•ผํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  2 ๋Œ“๊ธ€

epel ํŒจํ‚ค์ง€์˜

https://fedoraproject.org/wiki/EPEL

EPEL ์œ ์ง€ ํŒจํ‚ค์ง€์—์„œ ๋ฒ„๊ทธ๋ฅผ ๋ฐœ๊ฒฌํ•˜๋ฉด "Fedora EPEL"์ œํ’ˆ ์•„๋ž˜์˜ https://bugzilla.redhat.com/ ์—๋ณด๊ณ ํ•˜์‹ญ์‹œ์˜ค.

์ถ”๊ฐ€ ๋””๋ฒ„๊น…์„์œ„ํ•œ ํžŒํŠธ์ฒ˜๋Ÿผ-์ด๊ฒƒ์€ / usr / bin / ansible์ด ansible python ๋ชจ๋“ˆ์˜ ์ด์ „ ๋ฒ„์ „์„ ์ฐพ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์„ ์ฐพ์œผ๋ ค๋ฉด ์‹œ์Šคํ…œ์„ ๋‘˜๋Ÿฌ๋ณด์•„์•ผํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰