15d783de86
* template --> ansible.builtin.template * apt --> ansible.builtin.apt * lineinfile --> ansible.builtin.lineinfile * file --> ansible.builtin.file * blockinfile --> ansible.builtin.blockinfile * cron --> ansible.builtin.cron * timezone --> ansible.builtin.timezone * get_url --> ansible.builtin.get_url * group --> ansible.builtin.group * user --> ansible.builtin.user * unarchive --> ansible.builtin.unarchive * service --> ansible.builtin.service * apache2_module --> ansible.builtin.apache2_module * package --> ansible.builtin.apt * template --> ansible.builtin.template 2
12 lines
256 B
YAML
12 lines
256 B
YAML
---
|
|
- hosts: dns
|
|
become: yes
|
|
|
|
tasks:
|
|
- name: Setze DNS-Resolver fuer pihole-*
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/resolv.conf.head
|
|
line: nameserver 192.168.2.2
|
|
create: yes
|
|
backrefs: false
|
|
mode: 0664
|