{"image_url":null,"title":"Ansible\u3067itamae\u306eexecute\u3084not_if\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3059\u308b","url":"https://blog.utgw.net/entry/2019/04/27/194329","published":"2019-04-27 19:43:29","type":"rich","categories":["\u6280\u8853"],"width":"100%","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2019%2F04%2F27%2F194329\" title=\"Ansible\u3067itamae\u306eexecute\u3084not_if\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3059\u308b - \u79c1\u304c\u6b4c\u5ddd\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u79c1\u304c\u6b4c\u5ddd\u3067\u3059","author_name":"utgwkk","description":"\u3055\u307e\u3056\u307e\u306a\u4e8b\u60c5\u304c\u3042\u3063\u3066\u3001Ansible\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u30921\u3064\u306etask\u3068\u3057\u3066\u5b9f\u884c\u3057\u305f\u304f\u306a\u3063\u305f\u308a\u3001\u30b3\u30de\u30f3\u30c9\u306ereturn code\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u5206\u5c90\u3057\u305f\u308a\u3057\u305f\u304f\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002 itamae\u306a\u3089 execute \u3084 not_if \u3067\u5b9f\u73fe\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u540c\u3058\u3053\u3068\u3092Ansible\u3067\u3084\u308d\u3046\u3068\u3057\u3066\u624b\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u8a18\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b shell \u30ea\u30bd\u30fc\u30b9\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3055\u3089\u306b\u3001YAML\u3067\u306f\u8907\u6570\u884c\u306e\u6587\u5b57\u5217\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 - shell: VAR=`command_expand` command1; command2\u2026","height":"190","author_url":"https://blog.hatena.ne.jp/utgwkk/","provider_name":"Hatena Blog","blog_url":"https://blog.utgw.net/"}