Custom harden-linux role

This commit is contained in:
Paul-Henri Froidmont 2018-07-31 01:47:35 +02:00
parent 5d81de3cf9
commit bc0f0c4894
19 changed files with 1293 additions and 37 deletions

View file

@ -27,10 +27,7 @@ harden_linux_deploy_user_password: "{{k8s_scaleway_deploy_user_password}}"
harden_linux_deploy_user_home: /home/deploy
harden_linux_ufw_defaults_user:
"^DEFAULT_FORWARD_POLICY": 'DEFAULT_FORWARD_POLICY="ACCEPT"'
harden_linux_deploy_user_public_keys:
- authorized-keys/ansible-controller
- authorized-keys/froidmpa-laptop
- authorized-keys/froidmpa-desktop
harden_linux_deploy_user_public_keys: "{{ scw_authorized_keys }}"
harden_linux_ufw_allow_networks:
- "10.0.0.0/8"
- "172.16.0.0/12"

View file

@ -1,13 +1,13 @@
---
ansible_user: deploy
ansible_become: true
ansible_port: 2242
ansible_port: 22
harden_linux_sshd_settings_user:
"^Port ": "Port 2242"
"^Port ": "Port 22"
harden_linux_ufw_rules:
- rule: "allow"
to_port: "2242"
to_port: "22"
protocol: "tcp"
- rule: "allow"
to_port: "7000"

View file

@ -1,6 +1,6 @@
harden_linux_ufw_rules:
- rule: "allow"
to_port: "2242"
to_port: "22"
protocol: "tcp"
- rule: "allow"
to_port: "7000"