{"categories":["Ansible"],"blog_title":"\u96d1\u8a18","image_url":null,"author_url":"https://blog.hatena.ne.jp/namaza/","height":"190","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>","provider_name":"Hatena Blog","type":"rich","blog_url":"https://ytrewq.hatenablog.com/","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","version":"1.0","width":"100%","author_name":"namaza","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","provider_url":"https://hatena.blog","published":"2018-09-12 23:53:27"}