{"height":"190","provider_url":"https://hatena.blog","blog_url":"https://ytrewq.hatenablog.com/","categories":["Ansible"],"width":"100%","version":"1.0","author_name":"namaza","blog_title":"\u96d1\u8a18","url":"https://ytrewq.hatenablog.com/entry/2018/09/12/235327","title":"ec2\u306e\u9375\u30da\u30a2\u751f\u6210\u2192\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210playbook","provider_name":"Hatena Blog","image_url":null,"published":"2018-09-12 23:53:27","description":"\u306a\u305c\u304bcopy\u30e2\u30b8\u30e5\u30fc\u30eb\u3060\u3051\u3046\u307e\u304f\u52d5\u304b\u306a\u3044 \u3069\u3046\u3057\u305f\u3082\u3093\u304b - name: make a keypair hosts: localhost gather_facts: False become: yes tasks: - name: create mykey ec2_key: name={{keypair_name}} region=ap-northeast-1 register: keypair - name: create target dir. file: path=/home/ec2-user/auth state=directory - name: write the key to \u2026","author_url":"https://blog.hatena.ne.jp/namaza/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2018%2F09%2F12%2F235327\" title=\"ec2\u306e\u9375\u30da\u30a2\u751f\u6210\u2192\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210playbook - \u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}