community / community.general / 3.8.10 / module / imgadm Manage SmartOS images Authors: Jasper Lievisse Adriaanse (@jasperla)community.general.imgadm (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Manage SmartOS virtual machine images through imgadm(1M)
- name: Import an image community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: imported
- name: Delete an image community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: deleted
- name: Update all images community.general.imgadm: uuid: '*' state: updated
- name: Update a single image community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: updated
- name: Add a source community.general.imgadm: source: 'https://datasets.project-fifo.net' state: present
- name: Add a Docker source community.general.imgadm: source: 'https://docker.io' type: docker state: present
- name: Remove a source community.general.imgadm: source: 'https://docker.io' state: absent
pool: default: zones description: - zpool to import to or delete images from. required: false type: str type: choices: - imgapi - docker - dsapi default: imgapi description: - Type for image sources. required: false type: str uuid: description: - Image UUID. Can either be a full UUID or C(*) for all images. required: false type: str force: description: - Force a given operation (where supported by imgadm(1M)). required: false type: bool state: choices: - present - absent - deleted - imported - updated - vacuumed description: - State the object operated on should be in. C(imported) is an alias for for C(present) and C(deleted) for C(absent). When set to C(vacuumed) and C(uuid) to C(*), it will remove all unused images. required: true type: str source: description: - URI for the image source. required: false type: str
source: description: Source that is managed. returned: When not managing an image. sample: https://datasets.project-fifo.net type: str state: description: State of the target, after execution. returned: success sample: present type: str uuid: description: UUID for an image operated on. returned: When not managing an image source. sample: 70e3ae72-96b6-11e6-9056-9737fd4d0764 type: str