--- # tasks file for pihole - name: Create pihole Directories file: path: "{{ item }}" state: directory with_items: - "{{ pihole_data_directory }}" - "{{ pihole_data_directory }}/pihole" - "{{ pihole_data_directory }}/dnsmasq.d" - name: Copy docker-compose.yml template: src: docker-compose.j2.yml dest: "{{ pihole_data_directory }}/docker-compose.yml" owner: root group: root mode: 0644 # - name: Start docker-compose # docker_compose: # project_src: "{{ pihole_data_directory }}" # when: pihole