Sha256: 27d3bd541e1e6808ea31e4f1aeebcdbe10ccc9b84116fd204b9deab52b591ea4

Contents?: true

Size: 497 Bytes

Versions: 13

Compression:

Stored size: 497 Bytes

Contents

---
# tasks file for qb/json/read
- name: read file
  slurp:
    src: >-
      {{ json_src }}
  register: json_slurp

- name: parse json
  set_fact:
    json_value: >-
      {{ json_slurp.content | b64decode }}

- when: json_var != None
  name: >-
    Set var `{{ json_var }}` to JSON value
  set_fact:
    "{{ json_var }}": "{{ json_value }}"

- when: json_dump
  name: >-
    Print debug output
  debug:
    msg:
      name: >-
        {{ json_var }}
      value: >-
        {{ json_value }}
  

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
qb-0.4.5 roles/qb/json/read/tasks/main.yml
qb-0.4.4 roles/qb/json/read/tasks/main.yml
qb-0.4.3 roles/qb/json/read/tasks/main.yml
qb-0.4.2 roles/qb/json/read/tasks/main.yml
qb-0.4.1 roles/qb/json/read/tasks/main.yml
qb-0.4.0 roles/qb/json/read/tasks/main.yml
qb-0.3.25 roles/qb/json/read/tasks/main.yml
qb-0.3.24 roles/qb/json/read/tasks/main.yml
qb-0.3.23 roles/qb/json/read/tasks/main.yml
qb-0.3.22 roles/qb/json/read/tasks/main.yml
qb-0.3.21 roles/qb/json/read/tasks/main.yml
qb-0.3.20 roles/qb/json/read/tasks/main.yml
qb-0.3.19 roles/qb/json/read/tasks/main.yml