title: AWS ECR Get login command - No such file or directory via ansible
body: <p>I have an ansible task as such </p>
  
  <pre><code>- name: Login to AWS
     command: $(aws ecr get-login --no-include-email --region us-east-2)
  </code></pre>
  
  <p>On running this I get the output </p>
  
  <blockquote>
    <p>FAILED! => {"changed": false, "cmd": "'^$(aws' ecr get-login
    --no-include-email --region 'us-east-2)'", "msg": "[Errno 2] No such file or directory", "rc": 2}</p>
  </blockquote>
  
  <p>What is the reason ? I believe this command should run fine</p>