Install unbound & set it as system resolver

parent 9e485075
......@@ -6,4 +6,5 @@
- import_playbook: os.yml
- import_playbook: firewall.yml
- import_playbook: create_user.yml
- import_playbook: force_password_change.yml
\ No newline at end of file
- import_playbook: force_password_change.yml
- import_playbook: unbound.yml
\ No newline at end of file
......@@ -2,11 +2,13 @@
- hosts: ssh
tasks:
- name: Remove qemu-guest-agent
become: yes
apt:
name: qemu-guest-agent
state: absent
autoremove: yes
- name: Install needrestart
become: yes
apt:
name: needrestart
state: present
......
---
- src: dev-sec.ssh-hardening
- src: dev-sec.os-hardening
- src: weareinteractive.ufw
\ No newline at end of file
---
- hosts: ssh
tasks:
- name: Install unbound
become: yes
apt:
name: unbound
state: present
- name: Set unbound as system resolver
become: yes
shell:
cmd: printf "nameserver ::1\nnameserver 127.0.0.1" | tee /etc/resolv.conf && chattr +i /etc/resolv.conf
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment