remove ldap alias from /etc
put it in /root instead
This commit is contained in:
@@ -185,11 +185,18 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: ldap_have_ssl
|
when: ldap_have_ssl
|
||||||
|
|
||||||
- name: configure ldap aliases
|
- name: configure ldap aliases - 0/1
|
||||||
tags: shell
|
tags: shell
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: ldap_aliases.sh
|
src: ldap_aliases.sh
|
||||||
dest: /etc/profile.d/
|
dest: /root/.ldap_aliases.sh
|
||||||
|
|
||||||
|
- name: configure ldap aliases - 1/1
|
||||||
|
tags: shell
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /root/.bashrc
|
||||||
|
create: true
|
||||||
|
line: source /root/.ldap_aliases.sh
|
||||||
|
|
||||||
- name: add some entries
|
- name: add some entries
|
||||||
ldap_entry:
|
ldap_entry:
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ alias ldm="ldapmodify -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
|||||||
alias lda="ldapadd -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
alias lda="ldapadd -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
||||||
alias lds="ldapsearch -xLLL -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
alias lds="ldapsearch -xLLL -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
||||||
alias ldrm="ldapdelete -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
alias ldrm="ldapdelete -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
||||||
|
alias ldpw="ldappasswd -x -D {{ ldap_admin_dn }} -y {{ ldap_secret_file }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user