particledecay / ansible-jsonpatch

An Ansible module for patching JSON files
MIT License
118 stars 27 forks source link

Where to copy the file in ansible #4

Closed francisbangi closed 5 years ago

francisbangi commented 5 years ago

Hi

I'm new with Ansible, may i know where to copy the file so i can call the jsonpatch in playbook, ansible is installed in CentOS

garkin commented 5 years ago

Module istallation instructions link in the REAMDE.md would be helpful.

├── playbooks
├─┬ library
│ ╰── $ git clone https://github.com/ParticleDecay/ansible-jsonpatch.git ansible-jsonpatch
╰── playbook.yaml
├── playbooks
├─┬ roles
│ ╰─┬ example-role
│   ├── default
│   ├── tasks
│   ╰─┬ library
│     ╰── $ git clone https://github.com/ParticleDecay/ansible-jsonpatch.git ansible-jsonpatch
╰── playbook.yaml

Oh no, subfolders in ./library are broken ATM. https://github.com/ansible/ansible/issues/16561 As a workaround you need to explicitly specify library = ./library in the ansible.cfg.

And ./roles/*/libary subfolder resolution not working at all. Ansible is a goddamn mess.