You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/roles/ldap_client/tasks/2_userland_scripts.yml

18 lines
352 B
YAML

---
# Disable passwd and chsh
- name: Copy passwd and chsh scripts
template:
src: "{{ item }}.j2"
dest: /usr/local/bin/{{ item }}
mode: 0755
loop:
- 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