Skip to content

Commit 86742e7

Browse files
Merge pull request #107 from oci-hpc/2.10.2_ds_ubuntu_ldap
2.10.2 ds ubuntu ldap
2 parents be9aeda + e4904a0 commit 86742e7

File tree

6 files changed

+53
-2
lines changed

6 files changed

+53
-2
lines changed

playbooks/new_nodes.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,11 @@
196196
when: slurm|default(false)|bool
197197
- include_role:
198198
name: telegraf
199-
when: monitoring|default(false)|bool
199+
when: monitoring|default(false)|bool
200+
201+
- hosts: all
202+
become: true
203+
tasks:
204+
- include_role:
205+
name: fix_ldap
206+
when: ldap|default(true)|bool

playbooks/resize_add.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,11 @@
198198
when: slurm|default(false)|bool
199199
- include_role:
200200
name: telegraf
201-
when: monitoring|default(false)|bool
201+
when: monitoring|default(false)|bool
202+
203+
- hosts: all
204+
become: true
205+
tasks:
206+
- include_role:
207+
name: fix_ldap
208+
when: ldap|default(true)|bool
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- include: ubuntu.yml
2+
when: ansible_distribution == 'Ubuntu'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- name: restart nscd
3+
become: true
4+
systemd:
5+
name: nscd
6+
state: restarted
7+
daemon_reload: true
8+
enabled: true
9+
10+
- name: restart sssd
11+
become: true
12+
service:
13+
name: sssd
14+
state: restarted
15+
daemon_reload: true
16+
enabled: true

playbooks/roles/sssd/tasks/debian.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
owner: 'root'
1616
group: 'root'
1717
mode: '0600'
18+
notify: restart sssd
1819

1920
- name: Copy CA certificate
2021
copy:
@@ -53,11 +54,22 @@
5354
include_role:
5455
name: safe_yum
5556

57+
- name: Enable sssd service
58+
systemd:
59+
name: sssd
60+
enabled: "yes"
61+
62+
- name: Start sssd service
63+
systemd:
64+
name: sssd
65+
state: started
66+
5667
- name: Update sshd configuration
5768
lineinfile:
5869
path: /etc/ssh/sshd_config
5970
regexp: '^PasswordAuthentication'
6071
line: PasswordAuthentication no
6172
notify:
73+
- restart sshd
6274
- restart ns daemons
6375
- restart login services

playbooks/site.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,10 @@
305305
- include_role:
306306
name: slurm
307307
when: slurm|default(false)|bool
308+
309+
- hosts: all
310+
become: true
311+
tasks:
312+
- include_role:
313+
name: fix_ldap
314+
when: ldap|default(true)|bool

0 commit comments

Comments
 (0)