New in version 2.4.
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
backend required |
| Define the backend to use for the container |
image required | The image to use to install the container | |
mode required |
| Define if it is an user or a system container |
name required | Name of the container | |
rootfs | Define the rootfs of the image | |
state required |
| State of the container |
values | 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# Install the etcd system container - atomic_container: name: etcd image: rhel/etcd backend: ostree state: latest mode: system values: - ETCD_NAME=etcd.server # Uninstall the etcd system container - 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 ...'"}] |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/atomic_container_module.html