Infra/ansible/roles/pihole/tasks/gather.yml
2022-04-15 15:51:58 +02:00

44 lines
828 B
YAML

- name: Get dependencies for PiHole
when: not pihole_setup.stat.exists
become: true
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
become: true
ansible.builtin.git:
repo: "https://github.com/pi-hole/pi-hole.git"
clone: yes
dest: "/etc/.pihole"
depth: 1
umask: "022"