Skip to content

Commit 99af6f2

Browse files
committed
Add basic security role, it was not present before
1 parent c35ecb5 commit 99af6f2

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.templates/inventory/group_vars/all.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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
122138
default_role_basic_software:

playbooks/prepare-machine.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
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
#
@@ -63,6 +72,19 @@
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
# ========

0 commit comments

Comments
 (0)