File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
.templates/inventory/group_vars Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,22 @@ default_role_basic_security:
117117 - " 80"
118118 - " 443"
119119
120+ anonymize_logs : false
121+ anonymize_logs_schedule :
122+ minute : " 00"
123+ hour : " */6"
124+ day : " *"
125+ weekday : " *"
126+ month : " *"
127+
128+ clear_shell_history : false
129+ clear_shell_history_schedule :
130+ minute : " */10"
131+ hour : " *"
132+ day : " *"
133+ weekday : " *"
134+ month : " *"
135+
120136
121137# https://github.com/zwiazeksyndykalistowpolski/server-basic-software
122138default_role_basic_software :
Original file line number Diff line number Diff line change 1515 when : ssh_fallback_port is defined and ssh_fallback_port > 0
1616 vars :
1717 fallback_ssh_port : " {{ ssh_fallback_port }}"
18+ tags :
19+ - system_settings
20+ - users
21+ - basic_software
22+ - basic_security
23+ - tune
24+ - logs
25+ - fail2ban
26+ - port-multiplexer
1827
1928
2029#
6372
6473 - include_role : name=blackandred.server_basic_software
6574
75+ # =============
76+ # Security Role
77+ # =============
78+ - name : Basic Security role
79+ when : role_basic_security is defined
80+ tags : basic_security
81+ block :
82+ - name : Include required vars
83+ set_fact :
84+ args : " {{ default_role_basic_security | combine(role_basic_security | default({}), recursive=True) }}"
85+
86+ - include_role : name=blackandred.server_basic_security
87+
6688 # ========
6789 # Tweaking
6890 # ========
You can’t perform that action at this time.
0 commit comments