lib/subspace/commands/bootstrap.rb in subspace-0.4.13 vs lib/subspace/commands/bootstrap.rb in subspace-0.4.14
- old
+ new
@@ -8,11 +8,10 @@
def run
# ansible atlanta -m copy -a "src=/etc/hosts dest=/tmp/hosts"
install_python
ensure_ssh_dir
- copy_authorized_keys
end
private
def ensure_ssh_dir
@@ -20,22 +19,9 @@
@host_spec,
"-m",
"file",
"-a",
"path=/home/{{ansible_ssh_user}}/.ssh state=directory mode=0700",
- "-vvvv"
- ]
- bootstrap_command cmd
- end
-
- def copy_authorized_keys
- # -m file -a "dest=/srv/foo/a.txt mode=600"
- cmd = ["ansible",
- @host_spec,
- "-m",
- "copy",
- "-a",
- "src=authorized_keys dest=/home/{{ansible_ssh_user}}/.ssh/authorized_keys mode=600",
"-vvvv"
]
bootstrap_command cmd
end