Skip to content

koval-jan/ansible-json-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible json module

Inspired by ansible-ghetto-json.

Installation

Copy json_module into playbook’s library folder (./library).

Configuration sample

- name: test
  json_module:
    path: "test.json"
    changes:
      - type: "set"
        path: "z.x.test\\.ads\\.1"
        value: 1
      
      - type: "set"
        path: "z.x.test\\.ads\\.2"
        value: 2
      
      - type: "set"
        path: "a"
        value: 7
      
      - type: "unset"
        path: "a"
      
      - type: "append"
        path: "x"
        value: "1"
      
      - type: "extend"
        path: "x"
        values: 
          - 1
          - 2
          - 3

About

Ansible module for json file manipulation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages