Ansible_workstation/roles/pihole/tasks/main.yml

24 lines
577 B
YAML
Raw Normal View History

2022-06-04 04:36:34 +00:00
---
# 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