21 lines
605 B
YAML
21 lines
605 B
YAML
|
---
|
||
|
# tasks file for pi-hole
|
||
|
|
||
|
- name: Pi-Hole setup
|
||
|
when:
|
||
|
- 'pihole_enabled is true'
|
||
|
block:
|
||
|
- name: Populate service facts
|
||
|
ansible.builtin.service_facts:
|
||
|
|
||
|
- name: Start install process for pihole if service not found
|
||
|
when: "ansible_facts.services['pihole-FTL.service'] is not defined"
|
||
|
block:
|
||
|
- name: Install cURL if not present
|
||
|
ansible.builtin.package:
|
||
|
name: curl
|
||
|
|
||
|
- name: Execute manually the automated install and follow instructions
|
||
|
ansible.builtin.debug:
|
||
|
msg: "curl -sSL https://install.pi-hole.net | bash"
|