title: ansible aws ecr login without using docker command
body: <p>I want to login in aws docker ecr registry using ansible</p>
  <pre><code>    # return  docker login -u AWS -p &lt;token&gt; 
     -name: dget docker command
      shell: &quot;aws ecr get-login --region {{ aws_region }}&quot;
      register: docker_login_command
      
     -name: docker login 
      shell: &quot;{{docker_login_command.output}}&quot;
     
  </code></pre>
  <p>this will required docker cli install in our machine.but we are using docker container to run ansible with share docker socket. is there way to not use docker cli for this?</p>