This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: add user and create ssh key | |
user: name=shohei | |
- name: dowanload pubkey from Github and placed as authorized_keys | |
get_url: url=https://github.com/shohey1226.keys dest=/tmp/shohei.authorized_keys | |
delegate_to: 127.0.0.1 | |
- name: Create authorized_keys from the file that just downloaded | |
authorized_key: user=shohei key="{{ lookup('file', '/tmp/shohei.authorized_keys') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Copyright 2014 Paul Ferrett <paul@paulferrett.com> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |