mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
111
This commit is contained in:
parent
45734ddab0
commit
e3496763a3
@ -81,6 +81,7 @@
|
|||||||
path: /etc/nslcd.conf
|
path: /etc/nslcd.conf
|
||||||
regexp: "^#binddn"
|
regexp: "^#binddn"
|
||||||
line: "binddn cn=admin,dc=sectorq,dc=eu"
|
line: "binddn cn=admin,dc=sectorq,dc=eu"
|
||||||
|
|
||||||
- name: Reconfigure nslcd bindpw
|
- name: Reconfigure nslcd bindpw
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/nslcd.conf
|
path: /etc/nslcd.conf
|
||||||
@ -107,7 +108,7 @@
|
|||||||
content: |
|
content: |
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
ldapsearch -x '(&(objectClass=ldapPublicKey)(cn='"$1"'))' 'sshPublicKey' | sed -n '/^ /{H;d};/sshPublicKey:/x;$g;s/\n *//g;s/sshPublicKey: //gp'
|
ldapsearch -x '(&(objectClass=ldapPublicKey)(cn='"$1"'))' 'sshPublicKey' | sed -n '/^ /{H;d};/sshPublicKey:/x;$g;s/\n *//g;s/sshPublicKey: //gp'
|
||||||
|
mode: '0755'
|
||||||
- name: Reconfigure sshd
|
- name: Reconfigure sshd
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
- mailu2-webmail-1
|
- mailu2-webmail-1
|
||||||
- HomeAssistant
|
- HomeAssistant
|
||||||
- mosquitto-mosquitto-1
|
- mosquitto-mosquitto-1
|
||||||
|
- gitlab
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Start mailu rasp
|
# - name: Start mailu rasp
|
||||||
# uri:
|
# uri:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user