2019-02-05 08:35:45 +01:00
|
|
|
---
|
|
|
|
# Disable passwd and chsh
|
|
|
|
- name: Copy passwd and chsh scripts
|
|
|
|
template:
|
2019-02-19 10:42:57 +01:00
|
|
|
src: "{{ item }}.j2"
|
2019-02-19 11:41:08 +01:00
|
|
|
dest: "/usr/local/bin/{{ item }}"
|
2019-02-05 08:35:45 +01:00
|
|
|
mode: 0755
|
|
|
|
with_items:
|
2019-02-19 10:42:57 +01:00
|
|
|
- chsh
|
|
|
|
- passwd
|
2019-02-05 08:35:45 +01:00
|
|
|
|
|
|
|
# We do not want password change this way
|
|
|
|
- name: Symlink chsh.ldap to chsh
|
|
|
|
file:
|
2019-02-19 10:42:57 +01:00
|
|
|
src: /usr/local/bin/chsh
|
|
|
|
dest: /usr/local/bin/chsh.ldap
|
2019-02-05 08:35:45 +01:00
|
|
|
state: link
|
|
|
|
|