osism.services.kolla_toolbox (0.20240327.0) — module

Module for invoking ansible module in kolla_toolbox container.

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 targerting at invoking ansible module in kolla_toolbox container as used by Kolla project.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- hosts: controller
  tasks:
    - name: Ensure the direct absent
      kolla_toolbox:
        module_name: file
        module_args: path=/tmp/a state=absent
    - name: Create mysql database
      kolla_toolbox:
        module_name: mysql_db
        module_args:
          login_host: 192.168.1.10
          login_user: root
          login_password: admin
          name: testdb
    - name: Creating default user role
      kolla_toolbox:
        module_name: os_keystone_role
        module_args:
          name: _member_
          auth: "{{ '{{ openstack_keystone_auth }}' }}"
        module_extra_vars:
          openstack_keystone_auth:
            auth_url: http://127.0.0.1:5000
            username: admin
            password: password
            project_name: "admin"
            domain_name: "default"

Inputs

    
user:
    description:
    - The user to execute Ansible inside kolla_toolbox with
    required: false
    type: str

timeout:
    default: 180
    description:
    - The default timeout for docker-py client when contacting Docker API
    required: false
    type: int

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

module_args:
    description:
    - The module args use by the module
    required: false
    type: str or dict

module_name:
    description:
    - The module name to invoke
    required: true
    type: str

module_extra_vars:
    description:
    - The extra variables used by the module
    required: false
    type: str or dict