Skip to content

cryptotuxorg/packer-ubuntu-1804

 
 

Repository files navigation

Testing Playbooks

Copy the content of your host public key cat ~/.ssh/id_rsa.pub

Create the VM

cd test
vagrant up
vagrant ssh

Edit ~/.ssh/authorized_keys inside the VM and paste your host public key

Edit ~/.ssh/config on your host and add

Host cryptotux-test
    Hostname 127.0.0.1
    Port 2222
    User vagrant
    IdentityFile ~/.ssh/id_rsa

Try the ssh connection

ssh cryptotux-test
exit

Try ansible connection

ansible test -i ansible/hosts -m ping

Prerequisites

ansible-galaxy install geerlingguy.nfs
ansible-galaxy install geerlingguy.packer-debian

About

Packer Example - Ubuntu 18.04 minimal Vagrant Box using Ansible provisioner

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 85.6%
  • Ruby 14.4%