How to run Ansible command to update imunify360 settings
It turns out single quote works where double quote and backslash didn't.


- name: Enable rapid scan
  command: imunify360-agent config update '{"MALWARE_SCANNING"':' {"rapid_scan"':' true}}'



I learned that folding block scalar (>) is an easy alternative and a good way to avoid escaping.