Note
This plugin is part of the community.general collection (version 3.8.1).
You might already have this collection installed if you are using the ansible
package. It is not included in ansible-core
. To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.atomic_container
.
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
backend string / required |
| Define the backend to use for the container. |
image string / required | The image to use to install the container. | |
mode string |
| Define if it is an user or a system container. |
name string / required | Name of the container. | |
rootfs string | Define the rootfs of the image. | |
state string |
| State of the container. |
values list / elements=string | Values for the installation of the container. This option is permitted only with mode 'user' or 'system'. The values specified here will be used at installation time as --set arguments for atomic install. |
Note
atomic
command- name: Install the etcd system container community.general.atomic_container: name: etcd image: rhel/etcd backend: ostree state: latest mode: system values: - ETCD_NAME=etcd.server - name: Uninstall the etcd system container community.general.atomic_container: name: etcd image: rhel/etcd backend: ostree state: absent mode: system
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
msg string | always | The command standard output Sample: [{"u'Using default tag": "latest ...'"}] |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/atomic_container_module.html