Saya sedang menyelidiki Ansible untuk penyediaan server dan aplikasi. Aplikasi saya saat ini dilengkapi dengan skrip shell di Vagrant. Daripada menulis ulang skrip saya, saya mengambil sampel dan mencoba untuk menyebarkannya.
Tampaknya menyebarkan baik, tetapi saya telah melihat pesan kegagalan setelah apa yang tampak seperti serangkaian langkah-langkah sukses:
» vagrant provision ~/vm/blvagrant 1 ↵
[default] Running provisioner: ansible...
PLAY [web-servers] ************************************************************
GATHERING FACTS ***************************************************************
ok: [192.168.9.149]
TASK: [install python-software-properties] ************************************
ok: [192.168.9.149] => {"changed": false, "item": ""}
TASK: [add nginx ppa if it ubuntu 10.04 and up] *******************************
ok: [192.168.9.149] => {"changed": false, "item": "", "repo": "ppa:nginx/stable", "state": "present"}
TASK: [update apt repo] *******************************************************
ok: [192.168.9.149] => {"changed": false, "item": ""}
TASK: [install nginx] *********************************************************
ok: [192.168.9.149] => {"changed": false, "item": ""}
TASK: [copy fixed init for nginx] *********************************************
ok: [192.168.9.149] => {"changed": false, "gid": 0, "group": "root", "item": "", "mode": "0755", "owner": "root", "path": "/etc/init.d/nginx", "size": 2321, "state": "file", "uid": 0}
TASK: [service nginx] *********************************************************
ok: [192.168.9.149] => {"changed": false, "item": "", "name": "nginx", "state": "started"}
TASK: [write nginx.conf] ******************************************************
ok: [192.168.9.149] => {"changed": false, "gid": 0, "group": "root", "item": "", "mode": "0644", "owner": "root", "path": "/etc/nginx/nginx.conf", "size": 1067, "state": "file", "uid": 0}
PLAY RECAP ********************************************************************
192.168.9.149 : ok=8 changed=0 unreachable=0 failed=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Bagaimana cara saya mendapatkan informasi debug tambahan? Saya sudah menambahkan ansible.verbose = true
ke konfigurasi gelandangan saya yang menghasilkan kamus yang ditampilkan dalam output di atas.