title: Modify json using Ansible
body: <p>I have a simple json that looks like this:</p>
  <pre><code>{
     &quot;aaa&quot;: &quot;true&quot;,
     &quot;bbb&quot;: &quot;false&quot;,
     &quot;ccc&quot;: &quot;true&quot;
  }
  </code></pre>
  <p>I would like enable 'bbb' value using ansible. Here is my playbook:</p>
  <pre><code>---
  - hosts: &quot;{{hosts}}&quot;
    remote_user: 'centos'
    gather_facts: yes
    become: yes
  
    tasks:
    - name: Load current facts
      slurp:
        path: &quot;/tmp/file.json&quot;
      register: facts
  
    - name: Enable fact
      set_fact:
        facts: &quot;{{ facts | combine({ 'bbb': 'true' }) }}&quot;
  </code></pre>
  <p>Nothing happen when i run this playbook, and the json file stays the same. What could be the issue?</p>