--- - name: Create grafana data directory file: path: "{{ item }}" owner: "{{ grafana_puid }}" group: "{{ grafana_pgid }}" mode: '755' state: directory loop: - "{{ grafana_data }}" - "{{ grafana_config }}" become: true - name: Copy grafana config template: owner: "{{ grafana_puid }}" group: "{{ grafana_pgid }}" src: "templates/aya01/grafana/etc-grafana/grafana.ini.j2" dest: "{{ grafana_config }}/grafana.ini" mode: '644' become: true