theko2fi.multipass.multipass_config_get (0.3.0) — module

Get Multipass configuration setting

| "added in version" 0.2.0 of theko2fi.multipass"

Authors: Kenneth KOFFI (@theko2fi)

Install collection

Install with ansible-galaxy collection install theko2fi.multipass:==0.3.0


Add to requirements.yml

  collections:
    - name: theko2fi.multipass
      version: 0.3.0

Description

Get the configuration setting corresponding to the given key, or all settings if no key is specified.

Essentially returns the output of C(multipass get <key>) command

Inputs

    
key:
    description:
    - Path to the setting whose configured value should be obtained.
    - This key takes the form of a dot-separated path in a hierarchical settings tree
    required: true
    type: str

Outputs

result:
  description:
  - Facts representing the value of a single setting specified by the O(key) option.
  - Matches the C(multipass get) output.
  returned: always
  type: str