ansible/roles/ldap-client/tasks/2_userland_scripts.yml
2019-02-05 08:35:45 +01:00

18 lines
354 B
YAML

---
# Disable passwd and chsh
- name: Copy passwd and chsh scripts
template:
src: "{{ item }}"
dest: /usr/local/bin/
mode: 0755
with_items:
- 'chsh'
- 'passwd'
# We do not want password change this way
- name: Symlink chsh.ldap to chsh
file:
src: "/usr/local/bin/chsh"
dest: "/usr/local/bin/chsh.ldap"
state: link