New in version 2.4.
parameter | required | default | choices | comments |
---|---|---|---|---|
backend | yes | None |
| Define the backend to use for the container |
image | yes | The image to use to install the container | ||
mode | yes | None |
| Define if it is an user or a system container |
name | yes | Name of the container | ||
rootfs | no | Define the rootfs of the image | ||
state | yes | latest |
| State of the container |
values | no | None | 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. |
# Install the etcd system container - atomic_container: name: etcd image: rhel/etcd backend: ostree state: latest system: True values: - ETCD_NAME=etcd.server # Uninstall the etcd system container - atomic_container: name: etcd image: rhel/etcd backend: ostree state: absent system: True
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
msg | The command standard output | always | string | [{"u'Using default tag": "latest ...'"}] |
Note
atomic
commandThis module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/atomic_container_module.html