Entries from 2015-07-31 to 1 day

capistrano の対象の server を ansible の inventory file から設定する

hosts = `ansible -i /path/to/inventory hoge:fuga --list-host` hosts.split("\n").map { |host| host.strip }.each do |host| server host, user: 'app', roles: %w{app} end これだと ansible 上でいう hoge または fuga な host をリストアップし、capi…