I have a following task in Ansible playbook:
tasks:
- name: Start container
docker_container:
name: ubuntu
image: ubuntu:latest
image: python:latest
state: started
command: sleep infinity
But when I enter into the container and execute the command:
lsb_release -a
I get a following response:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Does it mean that Ansible installs only python:latest
image and ignores Ubuntu one?
If so, how do I solve it?