skip to Main Content

Modify .json file using Anisble

My file structure is like below [root@test exim]# cat exim.json { "general": { "max_hourly_email": 0, "max_notify_email": 0, "enable_mail_retry": "1", "mail_retry": 15, "enable_roundcube": "1", "default_quota_val": 32768, "default_quota": "1", "eximmailtrap": "1", "no_local_emailing": "0", "dkim_selector": "x", "disable_ipv6": "0", "custom_mailips": "0", "message_linelength_limit": 2048 I…

VIEW QUESTION

Json – Ansible loop with array

Could someone let me know how we can create a code as below? - name: TEST1 set_fact: list_a: "{{ list_a + [item.json.SearchResult.resources] }}" with_items: - "{{ source_list.results[0] }}" - "{{ source_list.results[1] }}" - "{{ source_list.results[x] }}" ... (unknown how many…

VIEW QUESTION
Back To Top
Search