回答編集履歴

1

参照すべきドキュメントを記載

2016/12/14 00:32

投稿

yunano
yunano

スコア841

test CHANGED
@@ -1 +1,5 @@
1
1
  `hosts: web[0]`とすれば良いです。
2
+
3
+
4
+
5
+ http://docs.ansible.com/ansible/intro_patterns.html の「You can refer to hosts within the group by adding a subscript to the group name:」の下に書かれています。