ansible / ansible.builtin / v2.6.0 / module / atomic_image Manage the container images on the atomic host platform | "added in version" 2.2 of ansible.builtin" Authors: Saravanan KR (@krsacme) preview | supported by communityansible.builtin.atomic_image (v2.6.0) — module
pip
Install with pip install ansible==2.6.0
Manage the container images on the atomic host platform.
Allows to execute the commands specified by the RUN label in the container image when present.
- name: Execute the run command on rsyslog container image (atomic run rhel7/rsyslog) atomic_image: name: rhel7/rsyslog state: latest
- name: Pull busybox to the OSTree backend atomic_image: name: busybox state: latest backend: ostree
name: description: - Name of the container image. required: true state: choices: - absent - latest - present default: latest description: - The state of the container image. - The state C(latest) will ensure container image is upgraded to the latest version and forcefully restart container, if running. backend: choices: - docker - ostree description: - Define the backend where the image is pulled. version_added: '2.4' version_added_collection: ansible.builtin started: default: 'yes' description: - Start or Stop the container. type: bool
msg: description: The command standard output returned: always sample: - u'Using default tag: latest ...' type: string