As described here.
- Modify
ssh_authorized_keys
,users
andsource = ...
etc. as needed. - Apply Terraform in
terraform/hmain
andterraform/hnodes
:
terraform init
terraform plan
terraform apply
- Generate SSH keypair on Linux host
- Copy public key in
terraform
folder - Login as md:md on
ansmain
and:
touch .ssh/id_rsa
chmod 600 .ssh/id_rsa
nano .ssh/id_rsa
<copy generated private key contene>
ssh ansible@node1