Encryption and major changes

This commit is contained in:
2024-09-28 23:12:19 +02:00
parent 1f060541c3
commit 6248286ad2
159 changed files with 153 additions and 129 deletions
+30
View File
@@ -0,0 +1,30 @@
---
- name: Configure systemd resolved
become: true
ansible.builtin.template:
src: etc/systemd/resolved.conf.j2
dest: /etc/systemd/resolved.conf
backup: true
mode: "0644"
owner: root
group: root
notify:
- Reload systemd
tags:
- resolved
- systemd
- CCE-84049-6
- name: Add nameservers to resolv.conf
become: true
ansible.builtin.lineinfile:
dest: /etc/resolv.conf
line: "nameserver {{ item }}"
mode: "0644"
owner: root
group: root
state: present
with_items: "{{ dns | split }}"
when: ansible_os_family == "RedHat"
tags:
- resolved