Ensure to restart `systemd-logind` to avoid 'Failed to create session' error (fix #4).
This commit is contained in:
parent
820c7659b0
commit
0430b9a016
|
@ -4,6 +4,7 @@
|
||||||
### Fix
|
### Fix
|
||||||
* For Debian Stretch ensure to also install `ca-certificates` (fix #2).
|
* For Debian Stretch ensure to also install `ca-certificates` (fix #2).
|
||||||
* Ensure to add only one time the sudoers line in `/etc/nsswitch.conf` file (fix #3).
|
* Ensure to add only one time the sudoers line in `/etc/nsswitch.conf` file (fix #3).
|
||||||
|
* Ensure to restart `systemd-logind` to avoid 'Failed to create session' error (fix #4).
|
||||||
|
|
||||||
## v1.1.1
|
## v1.1.1
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ This role will :
|
||||||
* Create an additional configuration file to only store the bind_password (`/etc/sssd/conf.d/domain.bind.conf`).
|
* Create an additional configuration file to only store the bind_password (`/etc/sssd/conf.d/domain.bind.conf`).
|
||||||
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file.
|
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file.
|
||||||
* Manage `sssd` service.
|
* Manage `sssd` service.
|
||||||
|
* Restart `systemd-logind` service.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,8 @@
|
||||||
service:
|
service:
|
||||||
name: '{{ sssd_service_name }}'
|
name: '{{ sssd_service_name }}'
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart logind
|
||||||
|
service:
|
||||||
|
name: systemd-logind
|
||||||
|
state: restarted
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
when: sssd_conf_manage
|
when: sssd_conf_manage
|
||||||
notify:
|
notify:
|
||||||
- restart sssd
|
- restart sssd
|
||||||
|
- restart logind
|
||||||
|
|
||||||
- name: "CONFIG conf.d/{{ sssd_domain }}.conf"
|
- name: "CONFIG conf.d/{{ sssd_domain }}.conf"
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
@ -55,6 +56,7 @@
|
||||||
when: sssd_conf_manage
|
when: sssd_conf_manage
|
||||||
notify:
|
notify:
|
||||||
- restart sssd
|
- restart sssd
|
||||||
|
- restart logind
|
||||||
|
|
||||||
- name: Ensure home directories are created upon login with pam
|
- name: Ensure home directories are created upon login with pam
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in New Issue