...
#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
...