--- # https://github.com/ansible/ansible/issues/30599 - name: "fill config file with a global variable because of ansible bug #30599" copy: content: RUN_MODE = prod dest: /etc/gitea/app.ini force: no - name: gitea config ini_file: path: /etc/gitea/app.ini section: "{{ item.section }}" option: "{{ item.option }}" value: "{{ item.value }}" owner: git group: git notify: restart gitea with_items: "{{ _gitea_config }}"