12 lines
385 B
YAML
12 lines
385 B
YAML
|
- 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
|