No hosts matched for localhost when running ansible playbook with aws_ec2 dynamic inventory
I’m running an ansible playbook which calls an initial task that runs on localhost to add ssh keys to known_hosts for all hosts returned by the inventory. This playbook runs fine if I use an explicit inventory list.