免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: bun
打印 上一主题 下一主题

[Ansible] ansible和ansible tower安装在有些系统上碰到问题 [复制链接]

论坛徽章:
15
2015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-15 17:29:44午马
日期:2015-01-06 17:06:51子鼠
日期:2014-11-24 10:11:13寅虎
日期:2014-08-18 07:10:55酉鸡
日期:2014-04-02 12:24:51双子座
日期:2014-04-02 12:19:44天秤座
日期:2014-03-17 11:43:36亥猪
日期:2014-03-13 08:13:51未羊
日期:2014-03-11 12:42:03白羊座
日期:2013-11-20 10:15:18CU大牛徽章
日期:2013-04-17 11:48:45
11 [报告]
发表于 2014-08-27 11:33 |只看该作者
回复 10# bun


自己看文档吧。

http://releases.ansible.com/ansi ... er_guide-latest.pdf

第10页 ~ 第14页。

我看了一下,是直接下载ansible-tower 的安装文件后,手工安装。

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
12 [报告]
发表于 2014-08-27 11:38 |只看该作者
yum clean  all
yum search ansible?

论坛徽章:
7
寅虎
日期:2014-08-15 12:54:11狮子座
日期:2014-10-28 23:42:142015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:48:00IT运维版块每日发帖之星
日期:2015-08-04 06:20:00IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-10-10 06:20:00
13 [报告]
发表于 2014-08-27 13:25 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
7
寅虎
日期:2014-08-15 12:54:11狮子座
日期:2014-10-28 23:42:142015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:48:00IT运维版块每日发帖之星
日期:2015-08-04 06:20:00IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-10-10 06:20:00
14 [报告]
发表于 2014-08-27 13:27 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
15 [报告]
发表于 2014-08-27 20:55 |只看该作者

论坛徽章:
7
寅虎
日期:2014-08-15 12:54:11狮子座
日期:2014-10-28 23:42:142015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:48:00IT运维版块每日发帖之星
日期:2015-08-04 06:20:00IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-10-10 06:20:00
16 [报告]
发表于 2014-08-28 10:17 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
17 [报告]
发表于 2014-10-09 00:04 |只看该作者
本帖最后由 ivysummer 于 2014-10-09 00:05 编辑

enable=0
默认情况下yum是不会搜索这个源的
可以修改成1或者
  1. yum list ansible --enablerepo= ansibleworks-awx]
复制代码
bun 发表于 2014-08-26 10:42
回复 6# wenhq

论坛徽章:
0
18 [报告]
发表于 2015-10-23 10:31 |只看该作者
本帖最后由 softiger 于 2015-10-23 10:33 编辑

同问,也是遇到相同的问题,这个问题解决了吗

日志如下:
[root@server ansible-tower-setup-bundle-2.3.1-1.el6]# ./setup.sh -p
/usr/local/lib/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
SSH password:

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [server.ita.com]

TASK: [group hosts by distribution] *******************************************
ok: [server.ita.com] => {"changed": false, "groups": {"RedHat-6.4": ["server.ita.com"]}}

PLAY [RedHat-7*:RedHat-6*:CentOS-7*:CentOS-6*:Ubuntu-12.04:Ubuntu-14.04] ******

TASK: [group hosts for supported distributions] *******************************
ok: [server.ita.com] => {"changed": false, "groups": {"supported": ["server.ita.com"]}}

PLAY [!supported] *************************************************************
skipping: no hosts matched

PLAY [all] ********************************************************************

TASK: [preflight | Preflight check - Fail if this machine lacks sufficient RAM.] ***
skipping: [server.ita.com]

TASK: [preflight | Preflight check - Does the system have a standard umask?] ***
ok: [server.ita.com] => {"changed": false, "cmd": "umask", "delta": "0:00:00.003266", "end": "2015-10-23 10:23:59.406428", "failed": false, "failed_when_result": false, "rc": 0, "start": "2015-10-23 10:23:59.403162", "stderr": "", "stdout": "0022", "stdout_lines": ["0022"], "warnings": []}

TASK: [preflight | Determine which mountpoint /var exists on] *****************
ok: [server.ita.com] => {"changed": false, "cmd": "df /var | tail -n1 | awk '{print $NF}'", "delta": "0:00:00.006536", "end": "2015-10-23 10:24:00.158414", "rc": 0, "start": "2015-10-23 10:24:00.151878", "stderr": "", "stdout": "/", "stdout_lines": ["/"], "warnings": []}

TASK: [preflight | Preflight check - Does /var meet minimum disk space requirement] ***
skipping: [server.ita.com] => (item={'options': 'rw', 'uuid': '577a87e8-cc11-4a3a-af18-de4b8dcdf36f', 'size_total': 35512868864, 'device': '/dev/mapper/VolGroup-lv_root', 'mount': '/', 'size_available': 23939420160, 'fstype': 'ext4'})
skipping: [server.ita.com] => (item={'options': 'rw', 'uuid': '1b731fc8-f643-4a35-91f5-9ad53f232e3f', 'size_total': 507744256, 'device': '/dev/sda1', 'mount': '/boot', 'size_available': 441583616, 'fstype': 'ext4'})
skipping: [server.ita.com] => (item={'options': 'ro,loop=/dev/loop0', 'uuid': 'NA', 'size_total': 3719962624, 'device': '/mnt/hgfs/E/tivoliMedia/os/rhel-server-6.4-x86_64-dvd.iso', 'mount': '/mnt/iso', 'size_available': 0, 'fstype': 'iso9660'})

TASK: [migrations | Check to see if /etc/awx/ exists (Tower < 2.1).] **********
ok: [server.ita.com] => {"changed": false, "stat": {"exists": false}}

TASK: [migrations | rsync /etc/awx/ to /etc/tower/.] **************************
skipping: [server.ita.com]

TASK: [migrations | Remove the /etc/awx/ directory.] **************************
skipping: [server.ita.com]

TASK: [migrations | Temporarily sync /etc/awx/ to /etc/tower/, giving later configuration a chance to update.] ***
skipping: [server.ita.com]

TASK: [migrations | Update awx-http-443.conf to use the /etc/tower/ location for the cert.] ***
skipping: [server.ita.com] => (item={'key': 'SSLCertificateFile', 'filename': 'awx.cert'})
skipping: [server.ita.com] => (item={'key': 'SSLCertificateKeyFile', 'filename': 'awx.key'})

TASK: [migrations | Update the settings.py file to point to the new SECRET_KEY.] ***
skipping: [server.ita.com]

TASK: [migrations | Check to see if /var/log/awx/ exists (Tower < 2.1).] ******
ok: [server.ita.com] => {"changed": false, "stat": {"exists": false}}

TASK: [migrations | rsync /var/log/awx/ to /var/log/tower/.] ******************
skipping: [server.ita.com]

TASK: [migrations | Remove the /var/log/awx/ directory.] **********************
skipping: [server.ita.com]

TASK: [migrations | Temporarily sync /var/log/awx/ to /var/log/tower/, giving later configuration a chance to update.] ***
skipping: [server.ita.com]

TASK: [migrations | Check to see if DATABASES is defined in the main settings file.] ***
failed: [server.ita.com] => {"changed": false, "cmd": "grep \"DATABASES = {\" /etc/tower/settings.py", "delta": "0:00:00.004142", "end": "2015-10-23 10:24:02.466956", "rc": 2, "start": "2015-10-23 10:24:02.462814", "stdout_lines": [], "warnings": []}
stderr: grep: /etc/tower/settings.py: No such file or directory
...ignoring

TASK: [migrations | Place a scaffolding script that knows how to migrate database settings.] ***
skipping: [server.ita.com]

TASK: [migrations | Create a separate postgres.py settings file in conf.d.] ***
skipping: [server.ita.com]

TASK: [migrations | Remove the scaffolding script.] ***************************
skipping: [server.ita.com]

TASK: [migrations | Check to see if celery is already configured for RabbitMQ.] ***
failed: [server.ita.com] => {"changed": false, "cmd": "grep \"amqp://\" /etc/tower/conf.d/celeryd.py", "delta": "0:00:00.003849", "end": "2015-10-23 10:24:03.274050", "rc": 2, "start": "2015-10-23 10:24:03.270201", "stdout_lines": [], "warnings": []}
stderr: grep: /etc/tower/conf.d/celeryd.py: No such file or directory
...ignoring

TASK: [migrations | Remove the celeryd configuration.] ************************
skipping: [server.ita.com]

TASK: [migrations | Check to see if the old awx SSL files exist.] *************
ok: [server.ita.com] => {"changed": false, "stat": {"exists": false}}

TASK: [migrations | Move awx.cert and awx.key to tower.cert and tower.key.] ***
skipping: [server.ita.com] => (item=cert)
skipping: [server.ita.com] => (item=key)

TASK: [migrations | Update awx-http-443.conf to use the new filenames.] *******
skipping: [server.ita.com] => (item={'ext': 'cert', 'key': 'SSLCertificateFile'})
skipping: [server.ita.com] => (item={'ext': 'key', 'key': 'SSLCertificateKeyFile'})

TASK: [migrations | Check to see if LDAP is defined in the main settings file.] ***
failed: [server.ita.com] => {"changed": false, "cmd": "grep \"import ldap\" /etc/tower/settings.py", "delta": "0:00:00.003966", "end": "2015-10-23 10:24:04.852553", "rc": 2, "start": "2015-10-23 10:24:04.848587", "stdout_lines": [], "warnings": []}
stderr: grep: /etc/tower/settings.py: No such file or directory
...ignoring

TASK: [migrations | Place a scaffolding script that knows how to migrate LDAP settings.] ***
skipping: [server.ita.com]

TASK: [migrations | Create a separate ldap.py settings file in conf.d.] *******
skipping: [server.ita.com]

TASK: [migrations | Remove the scaffolding script.] ***************************
skipping: [server.ita.com]

TASK: [migrations | Check to see if PostgreSQL is installed and not on 9.4.] ***
ok: [server.ita.com] => {"changed": false, "cmd": "psql --version", "delta": "0:00:00.005386", "end": "2015-10-23 10:24:05.688337", "rc": 0, "start": "2015-10-23 10:24:05.682951", "stderr": "", "stdout": "psql (PostgreSQL) 8.4.13\ncontains support for command-line editing", "stdout_lines": ["psql (PostgreSQL) 8.4.13", "contains support for command-line editing"], "warnings": []}

TASK: [migrations | include_vars {{ item }}] **********************************
ok: [server.ita.com] => (item=/opt/ansible/download/ansible-tower-setup-bundle-2.3.1-1.el6/roles/packages_el/vars/RedHat-6.yml) => {"ansible_facts": {"el_dependencies": "{{ el6_dependencies }}", "pg_release_url": "http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm", "tower_bundle_file": "tower_bundle_el6.j2", "yum_online_repo_files": ["epel-6.repo", "pgdg-94-centos.repo", "mongodb-org.repo", "cedric-vincent-centos-6.repo", "jlaska-supervisor-3-epel-6.repo", "jlaska-redis-28-epel-6.repo"], "yum_repo_keys": ["10gen-gpg-key.asc", "RPM-GPG-KEY-EPEL-6", "RPM-GPG-KEY-PGDG-94", "RPM-GPG-KEY-ansible-release", "cedric-vincent-centos6.xml.key", "jlaska-supervisor-3-epel-6.gpg", "jlaska-redis-28-epel-6.gpg"]}, "item": "/opt/ansible/download/ansible-tower-setup-bundle-2.3.1-1.el6/roles/packages_el/vars/RedHat-6.yml"}

TASK: [migrations | Stop Web Services (RH)] ***********************************
ok: [server.ita.com] => {"changed": false, "name": "httpd", "state": "stopped"}

TASK: [migrations | Stop Web Services (Ubuntu)] *******************************
skipping: [server.ita.com]

TASK: [migrations | Include supervisor variables.] ****************************
ok: [server.ita.com] => {"ansible_facts": {"sup_conf_location": "/etc/supervisord.d/awx.ini", "sup_init_name": "supervisord"}}

TASK: [migrations | Stop supervisor] ******************************************
failed: [server.ita.com] => {"failed": true}
msg: no service or tool found for: supervisord

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/install.retry

server.ita.com             : ok=19   changed=0    unreachable=0    failed=1   

[error] Oops!  An error occured while running setup.
[warn] /var/log/tower does not exist.
Setup log saved to setup.log.

论坛徽章:
0
19 [报告]
发表于 2015-12-28 11:54 |只看该作者
你手动安装一下有些包试一下,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP