File tree Expand file tree Collapse file tree 4 files changed +24
-42
lines changed Expand file tree Collapse file tree 4 files changed +24
-42
lines changed Original file line number Diff line number Diff line change
1
+ - name : reload ssh
2
+ service : name=ssh state=reloaded
Original file line number Diff line number Diff line change
1
+ - name : Enable GSSAPIAuthentication
2
+ lineinfile :
3
+ path : /etc/ssh/sshd_config
4
+ regexp : ' (?i)^#?\s*GSSAPIAuthentication\s'
5
+ line : GSSAPIAuthentication yes
6
+ notify : reload ssh
7
+ - name : Disable PasswordAuthentication
8
+ lineinfile :
9
+ path : /etc/ssh/sshd_config
10
+ regexp : ' (?i)^#?\s*PasswordAuthentication\s'
11
+ line : PasswordAuthentication no
12
+ notify : reload ssh
13
+ - name : Update k5login
14
+ copy :
15
+ dest : /root/.k5login
16
+ content : |
17
+ {% for maintainer in maintainers %}
18
+ {{ maintainer.username }}/[email protected]
19
+ {% endfor %}
Original file line number Diff line number Diff line change 48
48
- reconfigure munin-node
49
49
- setup
50
50
roles :
51
+ - k5login
51
52
- ldirectord-status
52
53
- lvs-iptables
53
54
- lvs-lighttpd
54
55
- munin-node
55
56
tasks :
56
- - name : Enable GSSAPIAuthentication
57
- lineinfile :
58
- path : /etc/ssh/sshd_config
59
- regexp : ' (?i)^#?\s*GSSAPIAuthentication\s'
60
- line : GSSAPIAuthentication yes
61
- notify : reload ssh
62
- - name : Disable PasswordAuthentication
63
- lineinfile :
64
- path : /etc/ssh/sshd_config
65
- regexp : ' (?i)^#?\s*PasswordAuthentication\s'
66
- line : PasswordAuthentication no
67
- notify : reload ssh
68
57
- name : Configure rsyslog
69
58
copy :
70
59
dest : /etc/rsyslog.d/scripts-syslog-client.conf
111
100
dest : /etc/nagios/nrpe_local.cfg
112
101
src : files/nrpe_local.cfg
113
102
notify : restart nrpe
114
- - name : Update k5login
115
- copy :
116
- dest : /root/.k5login
117
- content : |
118
- {% for maintainer in maintainers %}
119
- {{ maintainer.username }}/[email protected]
120
- {% endfor %}
121
103
- name : Update /etc/aliases
122
104
lineinfile :
123
105
path : /etc/aliases
179
161
dest : /etc/ha.d/ldirectord.cf
180
162
src : files/ldirectord.cf
181
163
handlers :
182
- - name : reload ssh
183
- service : name=ssh state=reloaded
184
164
- name : restart rsyslog
185
165
service : name=rsyslog state=restarted
186
166
- name : newaliases
Original file line number Diff line number Diff line change 1
1
- hosts : scripts-syslogs
2
2
serial : 1
3
+ roles :
4
+ - k5login
3
5
tasks :
4
6
- name : Configure Kerberos
5
7
debconf : name=krb5-config question=krb5-config/default_realm vtype=string value=ATHENA.MIT.EDU
17
19
- libzephyr4-krb5
18
20
- zephyr-clients
19
21
- aptitude
20
- - name : Update k5login
21
- copy :
22
- dest : /root/.k5login
23
- content : |
24
- {% for maintainer in maintainers %}
25
- {{ maintainer.username }}/[email protected]
26
- {% endfor %}
27
- - name : Enable GSSAPIAuthentication
28
- lineinfile :
29
- path : /etc/ssh/sshd_config
30
- regexp : ' (?i)^#?\s*GSSAPIAuthentication\s'
31
- line : GSSAPIAuthentication yes
32
- notify : reload ssh
33
- - name : Disable PasswordAuthentication
34
- lineinfile :
35
- path : /etc/ssh/sshd_config
36
- regexp : ' (?i)^#?\s*PasswordAuthentication\s'
37
- line : PasswordAuthentication no
38
- notify : reload ssh
39
22
- name : Update /etc/aliases
40
23
lineinfile :
41
24
path : /etc/aliases
104
87
notify : restart rsyslog
105
88
106
89
handlers :
107
- - name : reload ssh
108
- service : name=ssh state=reloaded
109
90
- name : newaliases
110
91
command : newaliases
111
92
- name : reload systemd
You can’t perform that action at this time.
0 commit comments