Moved key location to .ssh directory
This commit is contained in:
parent
d376b93e2c
commit
f404f39953
|
@ -1,6 +1,7 @@
|
||||||
# ---> Vagrant
|
# ---> Vagrant
|
||||||
# General
|
# General
|
||||||
.vagrant/
|
.vagrant/
|
||||||
|
.ssh/
|
||||||
|
|
||||||
# Log files (if you are creating logs in debug mode, uncomment this)
|
# Log files (if you are creating logs in debug mode, uncomment this)
|
||||||
# *.logs
|
# *.logs
|
||||||
|
|
|
@ -4,7 +4,7 @@ This repo helps you to test ansible playbooks on an Ubuntu 18 VM.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
1. Copy ``id_ed25519.pub`` into the directory you cloned this repo into.
|
1. Copy ``id_ed25519.pub`` to ``.ssh/``.
|
||||||
2. Install vagrant.
|
2. Install vagrant.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -65,6 +65,6 @@ Vagrant.configure("2") do |config|
|
||||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
||||||
# documentation for more information about their specific syntax and use.
|
# documentation for more information about their specific syntax and use.
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
cat /vagrant/id_ed25519.pub >> /home/vagrant/.ssh/authorized_keys
|
cat /vagrant/.ssh/id_ed25519.pub >> /home/vagrant/.ssh/authorized_keys
|
||||||
SHELL
|
SHELL
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue