summaryrefslogtreecommitdiffstats
path: root/roles/ansible/tasks/config.yml
blob: 5e361429b041ee3ce627bcd677567d5e8ed25011 (plain)
1
2
3
4
5
6
7
8
---
- name: modify ansible.cfg
  lineinfile:
    dest: /etc/ansible/ansible.cfg
    backrefs: yes
    regexp: "^#?({{ item.option }})( *)="
    line: '\1\2= {{ item.value }}'
  with_items: cfg_options