Files
a13labs.infra/ansible/roles/cis_hardening/tasks/hosts.yml
T

25 lines
441 B
YAML
Raw Normal View History

2024-09-24 15:19:51 +02:00
---
- name: Configure hosts.allow
become: true
ansible.builtin.template:
src: etc/hosts.allow.j2
dest: /etc/hosts.allow
backup: true
mode: "0644"
owner: root
group: root
tags:
- hosts.allow
- name: Configure hosts.deny
become: true
ansible.builtin.template:
src: etc/hosts.deny.j2
dest: /etc/hosts.deny
backup: true
mode: "0644"
owner: root
group: root
tags:
- hosts.deny