osism.services.kolla_container_facts (0.20240327.0) — module

Module for collecting Docker container facts

Authors: Jeffrey Zhang

Install collection

Install with ansible-galaxy collection install osism.services:==0.20240327.0


Add to requirements.yml

  collections:
    - name: osism.services
      version: 0.20240327.0

Description

A module targeting at collecting Docker container facts. It is used for detecting whether the container is running on host in Kolla.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- hosts: all
  tasks:
    - name: Gather docker facts
      kolla_container_facts:

    - name: Gather glance container facts
      kolla_container_facts:
        name:
          - glance_api
          - glance_registry

Inputs

    
name:
    description:
    - Name or names of the containers
    required: false
    type: str or list

api_version:
    default: auto
    description:
    - The version of the api for docker-py to use when contacting docker
    required: false
    type: str