convert_chef_databag_to_vars
Convert Chef data bag JSON to Ansible variables YAML for use in group_vars, host_vars, or playbook scopes during infrastructure migration.
Instructions
Convert Chef data bag to Ansible variables format.
Args: databag_content: JSON content of the Chef data bag databag_name: Name of the data bag item_name: Name of the data bag item (default: "default") is_encrypted: Whether the data bag is encrypted target_scope: Variable scope ("group_vars", "host_vars", or "playbook")
Returns: Ansible variables YAML content or vault file structure
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| databag_content | Yes | ||
| databag_name | Yes | ||
| item_name | No | default | |
| is_encrypted | No | ||
| target_scope | No | group_vars |