お世話になります
vagrantのansibleでhostを設定してmysqlに接続できません
下記のエラーが出ます。どう対処すれば良いですか?
[vagrant@host ~]$ ansible-playbook playbook.yml
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.43.52]
ok: [192.168.43.53]
TASK [add a new user] **********************************************************
changed: [192.168.43.52]
changed: [192.168.43.53]
TASK [install libselinux-python] ***********************************************
ok: [192.168.43.52]
ok: [192.168.43.53]
PLAY [web] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.43.52]
TASK [install apache] **********************************************************
ok: [192.168.43.52]
TASK [start apache and enabled] ************************************************
ok: [192.168.43.52]
TASK [change owner] ************************************************************
ok: [192.168.43.52]
TASK [copy index.html] *********************************************************
ok: [192.168.43.52]
TASK [install php packages] ****************************************************
ok: [192.168.43.52] => (item=[u'php', u'php-devel', u'php-mbstring', u'php-mysql'])
TASK [copy hello.php] **********************************************************
ok: [192.168.43.52]
PLAY [db] **********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.43.53]
TASK [install mysql] ***********************************************************
fatal: [192.168.43.53]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'mysql-server' found available, installed or updated", "rc": 126, "results": ["No package matching 'mysql-server' found available, installed or updated"]}
to retry, use: --limit @/home/vagrant/playbook.retry
PLAY RECAP *********************************************************************
192.168.43.52 : ok=10 changed=1 unreachable=0 failed=0
192.168.43.53 : ok=4 changed=1 unreachable=0 failed=1
[vagrant@host ~]$
またphpでブラウザを表示した時に添付画像をご確認ください
どうして<?phpまでもが表示されるのかがわかりません
https://photos.google.com/?pageId=none
よろしくお願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/23 00:21