File tree Expand file tree Collapse file tree 7 files changed +38
-35
lines changed Expand file tree Collapse file tree 7 files changed +38
-35
lines changed Original file line number Diff line number Diff line change 185
185
become : yes
186
186
tasks :
187
187
- name : Install and configure tuneD
188
- import_role :
188
+ include_role :
189
189
name : tuned
190
+ tasks_from : " {{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
190
191
191
192
- hosts : freeipa_server
192
193
# Done here as it might be providing DNS
216
217
become : yes
217
218
tags : firewalld
218
219
tasks :
219
- - import_role :
220
+ - include_role :
220
221
name : firewalld
222
+ tasks_from : " {{ 'runtime.yml' if appliances_mode == 'configure' else 'main.yml' }}"
221
223
222
224
- hosts : fail2ban
223
225
gather_facts : false
224
226
become : yes
225
227
tags : fail2ban
226
228
tasks :
227
- - import_role :
229
+ - include_role :
228
230
name : fail2ban
231
+ tasks_from : " {{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
229
232
230
233
- name : Setup podman
231
234
gather_facts : false
232
235
hosts : podman
233
236
tags : podman
234
237
tasks :
235
- - import_role :
236
- name : podman
237
- tasks_from : prereqs.yml
238
- tags : prereqs
239
-
240
- - import_role :
238
+ - include_role :
241
239
name : podman
242
- tasks_from : config.yml
243
- tags : config
240
+ tasks_from : " {{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
244
241
245
242
- hosts : update
246
243
gather_facts : false
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Create config
3
+ template :
4
+ dest : /etc/fail2ban/jail.local
5
+ src : jail.local.j2
6
+ notify : Restart fail2ban
7
+
8
+ - name : flush handlers
9
+ meta : flush_handlers
10
+
11
+ - name : Ensure fail2ban running even if no config change
12
+ service :
13
+ name : fail2ban
14
+ state : started
15
+ enabled : true
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Install EPEL repo
3
+ package :
4
+ name : epel-release
5
+
6
+ - name : Install fail2ban packages
7
+ package :
8
+ name :
9
+ - fail2ban-server
10
+ - fail2ban-firewalld
11
+ state : present
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Install EPEL repo
3
- package :
4
- name : epel-release
5
2
6
- - name : Install fail2ban packages
7
- package :
8
- name :
9
- - fail2ban-server
10
- - fail2ban-firewalld
11
- state : present
12
-
13
- - name : Create config
14
- template :
15
- dest : /etc/fail2ban/jail.local
16
- src : jail.local.j2
17
- notify : Restart fail2ban
18
-
19
- - name : flush handlers
20
- meta : flush_handlers
21
-
22
- - name : Ensure fail2ban running even if no config change
23
- service :
24
- name : fail2ban
25
- state : started
26
- enabled : true
3
+ - import_tasks : install.yml
4
+ - import_tasks : configure.yml
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ - import_tasks : install.yml
2
+ - import_tasks : configure.yml
You can’t perform that action at this time.
0 commit comments