pihole silent install
This commit is contained in:
4
additional/handler-pihole.yaml
Normal file
4
additional/handler-pihole.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: Install Pihole
|
||||
shell: curl -sSL https://install.pi-hole.net | bash
|
||||
...
|
||||
0
additional/pihole_default.yaml
Normal file
0
additional/pihole_default.yaml
Normal file
12
additional/pre_tasks-pihole.yaml
Normal file
12
additional/pre_tasks-pihole.yaml
Normal 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
|
||||
Reference in New Issue
Block a user