init
This commit is contained in:
20
ansible/playbooks/harden/harden_node.yml
Normal file
20
ansible/playbooks/harden/harden_node.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: harden node
|
||||
hosts: ec2
|
||||
become: true
|
||||
roles:
|
||||
- role: harden/fail2ban
|
||||
|
||||
- role: harden/unattended_upgrades
|
||||
|
||||
- role: harden/sshd_config
|
||||
vars:
|
||||
ssh_port: "{{ ssh_port }}"
|
||||
|
||||
- role: harden/nftables
|
||||
vars:
|
||||
ssh_port: "{{ ssh_port }}"
|
||||
# ntp_port: "{{ ntp_port }}"
|
||||
nftables_conf_name: "vm-nftables.conf.j2"
|
||||
|
||||
# ansible-playbook playbooks/harden/harden_node.yml -i inventory.ec2.ini -e "ssh_port=25105"
|
||||
Reference in New Issue
Block a user