{"url":"https://tekunabe.hatenablog.jp/entry/2019/12/22/ansible_format","provider_url":"https://hatena.blog","version":"1.0","categories":["ansible"],"author_name":"akira6592","blog_url":"https://tekunabe.hatenablog.jp/","height":"190","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/akira6592/20170902/20170902221811.png","blog_title":"\u3066\u304f\u306a\u3079","title":" [Ansible] Python \u306e str.format() \u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3059\u308b ","published":"2019-12-22 14:45:21","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2019%2F12%2F22%2Fansible_format\" title=\" [Ansible] Python \u306e str.format() \u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3059\u308b  - \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>","author_url":"https://blog.hatena.ne.jp/akira6592/","provider_name":"Hatena Blog","type":"rich","description":"\u306f\u3058\u3081\u306b Ansible \u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3068\u3057\u3066 Jinja2 \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 Jinja2 \u66f8\u5f0f\u5185\u3067\u3001Python \u306e str.format()\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3059\u308b\u65b9\u6cd5\u30922\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u691c\u8a3c\u74b0\u5883 Ansible 2.9.1 Python 3.6 \u65b9\u6cd51: .format() \u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b Python \u306e str.format() \u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306a\u65b9\u6cd5\u3067\u3059\u3002 Playbook \u629c\u7c8b - name: bracket only debug: msg: \"{{ 'Hello, {}!'.format('Kingyo') }}\" # \u7d50\u679c # \"Hello, Kingyo!\" - \u2026"}