Ansible No such file or directory error message for any executable in Amazon Linux AMI I'm trying to run this command in a Amazon Linux AMI instance
  - name: Run docker
    shell: systemctl enable docker &amp;&amp; systemctl start docker 

And receiving this error message
&quot;stderr&quot;: &quot;/bin/sh: systemctl: No such file or directory&quot;

I already tried with command, ansible systemd module and /usr/bin/systemctl.
After struggling for a time I solved the problem by changing the image in the ci from Ubuntu to ansible-runner.