-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml.j2
62 lines (56 loc) · 1.16 KB
/
main.yml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
# tasks file for while_true_do.{{ role_name }}
# TODO: Edit this file and remove parts, you don't need.
- name: Manage {{ role_name }} Packages
package:
name: ""
state: ""
become: true
tags:
- {{ role_name }}
- package
- name: Manage {{ role_name }} Configuration
template:
src: ""
dest: ""
become: true
notify: "Restart"
when:
- wtd_{{ role_name }}_package_state != "absent"
tags:
- {{ role_name }}
- configuration
- name: Manage {{ role_name }} SELinux
sefcontext|seboolean|seport|selogin:
...
become: true
when:
- ansible_selinux.status == "enabled"
- wtd_{{ role_name }}_package_state != "absent"
tags:
- {{ role_name }}
- selinux
- security
- name: Manage {{ role_name }} Service
service:
name: ""
state: ""
enabled: ""
become: true
when:
- wtd_{{ role_name }}_package_state != "absent"
tags:
- {{ role_name }}
- service
- name: Manage {{ role_name }} FW Service
firewalld:
service: ""
state: ""
zone: ""
become: true
when:
- wtd_{{ role_name }}_package_state != "absent"
tags:
- {{ role_name }}
- security
- firewall