I'm trying to create an infrastructure for ssh connections. This is my playbooks/tasks
- name: Copy ssh key to each server
copy: src=static_folder_key dest=/home/ec2-user/.ssh/ mode=0600
- name: Enable ssh Agent
shell: eval $(ssh-agent -s)
- name: Adding ssh key for static forlder project
shell: ssh-add /home/ec2-user/.ssh/static_folder_key
sudo: True
But I end up getting the following error:
FATAL: all hosts have already failed -- aborting