{"provider_name":"Hatena Blog","title":" [Ansible] \u30ed\u30fc\u30eb\u3092\u5f15\u6570\u3042\u308a\u306e\u95a2\u6570\u306e\u3088\u3046\u306b\u4f7f\u3046","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/akira6592/20170902/20170902221811.png","blog_url":"https://tekunabe.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F04%2F11%2Fansible_funcrole\" title=\" [Ansible] \u30ed\u30fc\u30eb\u3092\u5f15\u6570\u3042\u308a\u306e\u95a2\u6570\u306e\u3088\u3046\u306b\u4f7f\u3046 - \u3066\u304f\u306a\u3079\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_url":"https://blog.hatena.ne.jp/akira6592/","published":"2020-04-11 11:43:40","blog_title":"\u3066\u304f\u306a\u3079","url":"https://tekunabe.hatenablog.jp/entry/2020/04/11/ansible_funcrole","width":"100%","type":"rich","height":"190","author_name":"akira6592","description":"\u306f\u3058\u3081\u306b Playbook \u3092\u66f8\u3044\u3066\u3044\u3066\u51e6\u7406\u306e\u304b\u305f\u307e\u308a\u3092\u30ed\u30fc\u30eb\u5316\u3057\u305f\u3068\u304d\u3001\u4e00\u90e8\u306e\u51e6\u7406\u3060\u3051\u5909\u6570\u3067\u6319\u52d5\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30ed\u30fc\u30eb\u3092\u5f15\u6570\u3042\u308a\u306e\u95a2\u6570\u306e\u3088\u3046\u306b\u4f7f\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Python \u3067\u3044\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002 greeting \u306f\u3001\u5f15\u6570 msg \u3092\u6301\u3064 msg \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f Hello, Role! def greeting(msg=\"Hello, Role!\"): print(msg) greeting(msg=\"Good morning!\") # Good morning! \u3092\u51fa\u529b greeting() # Hello, Role! \u3092\u51fa\u529b \u52d5\u4f5c\u78ba\u8a8d\u74b0\u2026","categories":["ansible"]}