--- - name: Create prometheus dirs file: path: "{{ item }}" owner: "{{ puid }}" group: "{{ pgid}}" mode: '775' state: directory loop: - "{{ prometheus_config }}" - "{{ prometheus_data }}" - name: Place prometheus config template: owner: "{{ puid }}" group: "{{ pgid}}" mode: '644' src: "templates/aya01/prometheus/prometheus.yml.j2" dest: "{{ prometheus_config }}/prometheus.yml"