Skip to content

Instantly share code, notes, and snippets.

@k1LoW
Created January 10, 2014 09:06
Show Gist options
  • Select an option

  • Save k1LoW/8348869 to your computer and use it in GitHub Desktop.

Select an option

Save k1LoW/8348869 to your computer and use it in GitHub Desktop.
---
- hosts: all
vars:
username: hogehoge
sudo: true
tasks:
- name: add ssh user
user: name={{ username }} comment="ssh user"
- authorized_key: user={{ username }} key="{{ item }}"
with_lines:
- curl https://github.com/k1LoW.keys
- curl https://github.com/withelmo.keys
- curl https://github.com/yama23.keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment