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

相關內容