community / community.general / 0.1.4 / module / atomic_container Manage the containers on the atomic host platform Authors: Giuseppe Scrivano (@giuseppe)community.general.atomic_container (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Manage the containers on the atomic host platform
Allows to manage the lifecycle of a container on the atomic host platform
- name: Install the etcd system container atomic_container: name: etcd image: rhel/etcd backend: ostree state: latest mode: system values: - ETCD_NAME=etcd.server
- name: Uninstall the etcd system container atomic_container: name: etcd image: rhel/etcd backend: ostree state: absent mode: system
mode: choices: - user - system description: - Define if it is an user or a system container required: true name: description: - Name of the container required: true image: description: - The image to use to install the container required: true state: choices: - latest - present - absent - rollback default: latest description: - State of the container required: true rootfs: description: - Define the rootfs of the image values: description: - 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. backend: choices: - docker - ostree description: - Define the backend to use for the container required: true
msg: description: The command standard output returned: always sample: - u'Using default tag: latest ...' type: str