{"blog_url":"https://nemui09.hatenadiary.com/","height":"190","author_url":"https://blog.hatena.ne.jp/nemui09/","type":"rich","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","image_url":null,"author_name":"nemui09","blog_title":"\u305f\u3075\u304c\u3044\u306e\u721b\u6f2b\u65e5\u8a18","published":"2019-04-02 16:59:48","version":"1.0","description":"\u3054\u304d\u3052\u3093\u3088\u3046\u3001\u30a8\u30f3\u30b8\u30cb\u30a22\u5e74\u76ee\u306e\u3055\u304f\u30fc\u3093\u3067\u3059\u3002 \u65e9\u901f\u3067\u3059\u304c\u3001\u73fe\u5728Ansible\u3092\u305f\u304f\u3055\u3093\u89e6\u3063\u305f\u306e\u3067\u8b70\u4e8b\u9332\u3068\u3057\u3066\u6b8b\u305d\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u30ea\u30e2\u30fc\u30c8\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6bd4\u8f03\u3092\u3057\u305f\u3044 - hosts : host_name tasks : - name : diff\u3057\u3066\u307f\u308b shell : diff /etc/hosts /home/\u30fb\u30fb\u30fb/host_backup/hosts register : diff_result failed_when : diff_result.rc not in [0,1] - name : \u5224\u5b9a debug : msg : 'backup success' when : diff\u2026","categories":[],"width":"100%","title":"Ansible\u3067\u30ea\u30e2\u30fc\u30c8\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u306ediff\u3092\u3068\u308a\u305f\u3044","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnemui09.hatenadiary.com%2Fentry%2F2019%2F04%2F02%2F165948\" title=\"Ansible\u3067\u30ea\u30e2\u30fc\u30c8\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u306ediff\u3092\u3068\u308a\u305f\u3044 - \u305f\u3075\u304c\u3044\u306e\u721b\u6f2b\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>","url":"https://nemui09.hatenadiary.com/entry/2019/04/02/165948"}