ansible-common/roles/secure/defaults/main.yml

23 lines
843 B
YAML

# Make a full system upgrade (using apt-get full-upgrade)
common_full_upgrade: false
common_allow_restart: false # allow restarting after update
# Install and configure UFW Firewall on the system
common_firewall_enable: true
common_firewall_reject: false # reject all connections by default
# Default Firewall Rules
common_firewall:
- port: 22
rule: allow
state: present
direction: in
interface: "{{ common_firewall_lan_interface if common_firewall_lan_interface }}"
comment: "Allow incoming connections on {{ common_firewall_lan_interface if common_firewall_lan_interface else 'all interfaces' }}"
# Configure SSH to only accept SSH Keys
common_ssh_configure: true
# This locks the root account *password*, but still allows SSH Key and sudo logins
# To unlock the password, set this to false.
common_lock_root: true