<p dir="auto">include: playbook.yml a=2 b=3 c=4</p>
<p dir="auto">we can do it with tasks, why not?</p>
<p dir="auto">see also: handlers</p>
<p dir="auto">make sure with_items also works with these includes as it now works with task includes</p>
<p dir="auto">Unable to connect to ec2-host (errors with permission denied errors) in AWS.</p>
<ol dir="auto">
<li>Have the following entry in inventory file</li>
<li>Following command was executed<br>
ansible -vvv test_ansible --user ansible --private-key=/home/ansible/.ssh/id_rsa -m ping --become-user=ansible</li>
</ol>
<p dir="auto">It is trying to connect as ec2-user@ec2_remotehost |FAILED&gt; SSH Error: Permission denied (publickey).<br>
while connecting to ec2_remotehost:22</p>
<p dir="auto">If this is already fixed, let me know the bug number and I can close this as duplicate.</p>