Infra/ansible/roles/pihole/tasks/gather.yml

44 lines
854 B
YAML
Raw Normal View History

2021-08-17 00:05:31 +02:00
- name: Get dependencies for PiHole
when: not pihole_setup.stat.exists
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2021-08-17 00:05:31 +02:00
ansible.builtin.apt:
name:
[
"cron",
"curl",
"dhcpcd5",
"dns-root-data",
"dnsutils",
"git",
"idn2",
"idn2",
"iputils-ping",
"libcap2-bin",
"libcap2",
"lighttpd",
"lsof",
"netcat",
"php-cgi",
"php-cli",
"php-curl",
"php-intl",
"php-sqlite3",
"php-xml",
"psmisc",
"sqlite3",
"sudo",
"unzip",
"wget",
"whiptail",
]
state: latest
- name: Checkout PiHole
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2021-08-17 00:05:31 +02:00
ansible.builtin.git:
repo: "https://github.com/pi-hole/pi-hole.git"
clone: yes
dest: "/etc/.pihole"
depth: 1
umask: "022"