The COPY command wasn't able to create the hosts file under /runner/inventory.
Since the ansible-runner is always exec in the container with the context of localhost, pass in the --hosts localhost as part of the param instead of relying of a static hosts file that contains the content localhost
Signed-off-by: Mike Ng ming@redhat.com
The
COPY
command wasn't able to create the hosts file under/runner/inventory
.Since the ansible-runner is always exec in the container with the context of localhost, pass in the
--hosts localhost
as part of the param instead of relying of a statichosts
file that contains the contentlocalhost