config.yml 201 B

12345678
  1. ---
  2. - name: modify ansible.cfg
  3. lineinfile:
  4. dest: /etc/ansible/ansible.cfg
  5. backrefs: yes
  6. regexp: "^#?({{ item.option }})( *)="
  7. line: '\1\2= {{ item.value }}'
  8. with_items: cfg_options