community.general.atomic_container module – Manage the containers on the atomic host platform
Note
This module is part of the community.general collection (version 10.7.5).
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.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.atomic_container.
DEPRECATED
- Removed in:
- version 13.0.0 
- Why:
- Project Atomic was sunset by the end of 2019. 
- Alternative:
- There is none. 
Synopsis
- Manage the containers on the atomic host platform. 
- Allows to manage the lifecycle of a container on the atomic host platform. 
Requirements
The below requirements are needed on the host that executes this module.
- atomic 
Parameters
| Parameter | Comments | 
|---|---|
| Define the backend to use for the container. Choices: 
 | |
| The image to use to install the container. | |
| Define if it is an user or a system container. Choices: 
 | |
| Name of the container. | |
| Define the rootfs of the image. | |
| State of the container. Choices: 
 | |
| 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. Default:  | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Support: none | Can run in  | |
| Support: none | Will return details on what has changed (or possibly needs changing in  | 
Notes
Note
- According to https://projectatomic.io/ the project has been sunset around 2019/2020, in favor of - podmanand Fedora CoreOS.
Examples
- 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
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| The command standard output. Returned: always Sample:  | 
Status
- This module will be removed in version 13.0.0. [deprecated] 
- For more information see DEPRECATED. 
