automated installation of contrail 5 with ansible
1- remote access to the VM on AWS ( using terraformpairkey )
1a- create the hosts file
1b- test ssh session
2- copy key to the VM on AWS
 #ssh-copy-id <
10.0
.
1.104
>
 - name: copy ssh key to the AWS VM
  command: "ssh-copy-id root@<IP@>"          #ssh copy like simple ssh need: 1- user/password or 2- ssh key ) so don't for get ssh-add terraformpairkey.pem, just to loginÂ
  ignore_errors: yes
2- Install packages:Â
sudo yum install -y ansible-
2.4
.
2.0
sudo yum install git -y
3- geting the contrail playbooK
git clone http:
//github.com/Juniper/contrail-ansible-deployer
4- cd and run playbook
cd contrail-ansible-deployer
ansible-playbook -i inventory/ -e orchestrator=kubernetes -eÂ
'{"instances":{"bms1":{"ip":"localhost","provider":"bms"}}}'
 playbooks/configure_instances.yml
ansible-playbook -i inventory/ -e orchestrator=kubernetes -eÂ
'{"instances":{"bms1":{"ip":"localhost","provider":"bms"}}}'
 playbooks/install_contrail.yml