virtualbox ansible 和 PHP

virtualbox ansible 和 PHP

我正在尝试使用 Ansible 在 Virtual Box 中的 Ubuntu vivit 上安装 Centos-7。在出现以下消息之前,我完成了大量配置和设置。我搜索了各种错误类型,但没有看到我的错误类型,所以我想我会来这里。有人能告诉我这些错误是什么意思吗?我怀疑是安装 PHP 依赖项失败了,但我不知道为什么会失败以及如何纠正它。

谢谢

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

GATHERING FACTS *************************************************************** 
ok: [default]

TASK: [common | check if EPEL is installed] *********************************** 
failed: [default] => {"changed": false, "cmd": "/usr/bin/rpmquery epel-release", "delta": "0:00:00.036192", "end": "2015-09-30 19:40:02.697466", "rc": 1, "start": "2015-09-30 19:40:02.661274", "stdout_lines": ["package epel-release is not installed"]}
stdout: package epel-release is not installed
...ignoring

TASK: [common | install EPEL] ************************************************* 
changed: [default]

TASK: [common | clean yum metadata on first run] ****************************** 
changed: [default]

TASK: [common | upgrade all packages on first run] **************************** 
changed: [default]

TASK: [mariadb | MariaDB Install] ********************************************* 
changed: [default] => (item=mariadb-server)

TASK: [mariadb | MariaDB my.cnf] ********************************************** 
changed: [default]

TASK: [mariadb | Starting MariaDB] ******************************************** 
changed: [default]

TASK: [mariadb | Enabled MariaDB Service] ************************************* 
changed: [default]

TASK: [mariadb | Ensure DB user exists] *************************************** 
changed: [default]

TASK: [mariadb | Ensure DB exists] ******************************************** 
changed: [default]

TASK: [mariadb | Import ConnectDB] ******************************************** 
changed: [default]

TASK: [php | Install PHP Packages] ******************************************** 
failed: [default] => (item=php,php-devel,php-pecl-zendopcache,php-mbstring,php-xml,php-mysql,php-gd,php-pdo,php-drush-drush,php-json,libmcrypt-devel,libmcrypt,php-mcrypt) => {"failed": true, "item": "php,php-devel,php-pecl-zendopcache,php-mbstring,php-xml,php-mysql,php-gd,php-pdo,php-drush-drush,php-json,libmcrypt-devel,libmcrypt,php-mcrypt"}
msg: unsupported parameter for module: update_cache

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/jcorbett/playbook.retry

default                    : ok=12   changed=10   unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

答案1

由于没有看到剧本,我只能假设。似乎你正在使用一个不受支持的参数,正如建议的那样这里

- name: Run yum upgrade
action: command yum upgrade

相关内容