konono.easyconf.ezvar (1.0.3) — module

easy yaml and json config editor

| "added in version" 2.11 of konono.easyconf"

Authors: Yuki Yamashita (@konono)

preview | supported by community

Install collection

Install with ansible-galaxy collection install konono.easyconf:==1.0.3


Add to requirements.yml

  collections:
    - name: konono.easyconf
      version: 1.0.3

Description

This is a module that makes it easy to configure a config file with a data structure

Inputs

    
key:
    description:
    - Set the key you want to edit. The input should be in json format.
    required: true

var:
    description:
    - Set the dictionary.
    required: true

state:
    description:
    - Set the state taht present or absent.
    required: false

value:
    description:
    - Set the value to be assigned to key.
    required: false

Outputs

var:
  description: Return modified variable.
  returned: success
  sample: var
  type: raw