memo - accgetter/ansible GitHub Wiki
実行時に必要な設定
実行サーバの/etc/hostsに対向サーバのホストを設定しないと Name or service not known のエラーになる
install to ec2
$ sudo easy_install pip
$ sudo /usr/local/bin/pip install ansible==1.9.2
yum だとpythonのバージョンと合わずうまく動かない事がある
$ sudo yum -y install ansible --enablerepo=epel
notfy,handler
http://blog.amedama.jp/entry/2015/09/01/214912
ファイル操作
http://docs.ansible.com/ansible/list_of_files_modules.html
ファイルコピー
sample
- copy: >
src=foo.txt # local file
dest=/tmp/foo.txt # remote file
owner=root
group=root
mode=0755