{"categories":["Ansible"],"description":"connection\u3067local\u3092\u6307\u5b9a\u3059\u308b\u3068delegate_to\u306f\u52b9\u304b\u306a\u3044\u3088\u3002 \u52d5\u4f5c\u78ba\u8a8d \u7c21\u5358\u306aPlaybook\u3067\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u3002 --- - name: Test hosts: localhost # <-Play\u3068\u3057\u3066\u306e\u63a5\u7d9a\u3055\u304d\u306flocalhost gather_facts: false tasks: - name: Check Hostname ansible.builtin.command: cmd: \"hostname\" register: res_cmd delegate_to: \"{{ connection_target }}\" #<- \u3053\u306e\u30bf\u30b9\u30af\u306f\u5909\u6570\u3067\u6e21\u3055\u308c\u305f\u30db\u30b9\u30c8\u306b\u63a5\u7d9a -\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/holtit_32/","version":"1.0","url":"https://holtit.hatenablog.jp/entry/2025/10/30/195550","provider_url":"https://hatena.blog","blog_url":"https://holtit.hatenablog.jp/","height":"190","type":"rich","author_name":"holtit_32","image_url":null,"title":"\u3010Ansible\u3011connection=local\u306fdelegate_to\u3088\u308a\u512a\u5148\u3055\u308c\u308b","published":"2025-10-30 19:55:50","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fholtit.hatenablog.jp%2Fentry%2F2025%2F10%2F30%2F195550\" title=\"\u3010Ansible\u3011connection=local\u306fdelegate_to\u3088\u308a\u512a\u5148\u3055\u308c\u308b - \u4e00\u6b69\" 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":"\u4e00\u6b69"}