pihole silent install

This commit is contained in:
janic
2021-12-06 14:00:39 +01:00
parent b028601db6
commit a0c0c11c1b
8 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
---
- name: Install Pihole
shell: curl -sSL https://install.pi-hole.net | bash
...

View File

View File

@@ -0,0 +1,12 @@
- name: Load variable files
include_vars: "{{ item }}"
with_first_found:
- "pihole_{{ ansible_os_family }}.yaml"
- "pihole_default.yaml"
- name: Update APT-cache if Debianbased
apt: update_cache=yes cache_valid_time=3600
when: ansible_os_family == 'Debian'
- name: Install curl
package:
name: curl
state: latest