2014-04-13 17:30 くらいの ansible.log を確認してみよう
2014-04-13 00:31:21,448 p=2608 u=ubuntu | PLAY [all] ********************************************************************
2014-04-13 00:31:21,448 p=2608 u=ubuntu | GATHERING FACTS ***************************************************************
2014-04-13 00:31:24,518 p=2608 u=ubuntu | fatal: [106.186.18.73] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
2014-04-13 00:31:24,519 p=2608 u=ubuntu | TASK: [Install Ruby] **********************************************************
2014-04-13 00:31:24,534 p=2608 u=ubuntu | FATAL: no hosts matched or all hosts have already failed -- aborting
2014-04-13 00:31:24,535 p=2608 u=ubuntu | PLAY RECAP ********************************************************************
2014-04-13 00:31:24,536 p=2608 u=ubuntu | to retry, use: --limit @/home/ubuntu/ripdiko.retry
2014-04-13 00:31:24,536 p=2608 u=ubuntu | 106.186.18.73 : ok=0 changed=0 unreachable=1 failed=0
grep のエラーコード使って検知し、./linode_ripdiko.sh を再実行するようにした。
https://github.com/linode/cli
http://docs.ansible.com/intro_installation.html#id11
Ubuntuの場合
$ sudo apt-add-repository ppa:rquillo/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
linode create ripdiko --password $LINODE_PASSWORD
linode list --json | jq -r '.ripdiko.ips[0]' > .ansible.inventory
http://yteraoka.github.io/ansible-tutorial/
ansible-playbook -i
sudo cp /etc/ansible/ansible.cfg ~/.ansible.cfg
以下を uncomment、かつ下の2つはパラメーターを追記
host_key_checking = False
log_path = /var/log/ansible.log
ssh_user = root
ssh_private_key_file = /home/ubuntu/.ssh/linode_id_rsa