{"provider_name":"Hatena Blog","categories":["Ansible"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20130820%2F1377013914\" title=\" \u6761\u4ef6\u306b\u3088\u3063\u3066\u5b9f\u884c\u3059\u308b task \u3092\u5b9a\u7fa9\u3059\u308b - akishin999\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/akishin999/","height":"190","title":" \u6761\u4ef6\u306b\u3088\u3063\u3066\u5b9f\u884c\u3059\u308b task \u3092\u5b9a\u7fa9\u3059\u308b","description":"when \u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002host \u306e\u60c5\u5831\u3084\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306e\u5024\u306b\u3088\u308a\u5b9f\u884c\u3059\u308b task \u3092\u5b9a\u7fa9\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002 task \u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u6761\u4ef6\u306f when \u53e5\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002when \u53e5\u3067\u306f\u5909\u6570\u3092\u6307\u5b9a\u3067\u304d\u308b\u306e\u3067\u3001\u4f8b\u3048\u3070 --extra-vars \u3092\u4f7f\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5916\u90e8\u304b\u3089\u5b9f\u884c\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002 when.yml --- - user: root hosts: all tasks: - name: install mlocate yum: name=mlocate state=installed when: install == \"y\" w\u2026","image_url":null,"version":"1.0","blog_url":"https://akishin.hatenablog.jp/","url":"https://akishin.hatenablog.jp/entry/20130820/1377013914","published":"2013-08-20 00:51:54","blog_title":"akishin999\u306e\u65e5\u8a18","author_name":"akishin999","width":"100%","provider_url":"https://hatena.blog","type":"rich"}