Ansibleのshellモジュールとcommandモジュールの使い分けがいまいちわかんなくて、調べてみました。 Ansibleの公式ドキュメントでは下記のようにありました。 shellモジュール The shell module takes the command name followed by a list of space-delimited arguments. It is almost exactly like the command module but runs the command through a shell (/bin/sh) on the remote node. If you want to execute a command securely and predictably, it may be better to use the command modul
![Ansibleのshellモジュールとcommandモジュールの使い分け](https://cdn-ak-scissors.b.st-hatena.com/image/square/41763e4ec3a7bbbe3d6d819d8197e671d5397bb9/height=288;version=1;width=512/https%3A%2F%2Fi0.wp.com%2Fbacchi.me%2Fwp-content%2Fuploads%2F2015%2F03%2Fansible-e1425987314229.jpeg%3Ffit%3D158%252C160%26ssl%3D1)