upt playbook

This commit is contained in:
jaydee 2023-08-28 13:53:09 +02:00
parent 3a11af25bd
commit 302677bfbc

View File

@ -7,4 +7,4 @@
content: |
#!/bin/bash
ldapsearch -b "dc=sectorq,dc=eu" -H ldap://192.168.77.106:389 -x '(&(objectClass=ldapPublicKey)(cn='"$1"'))' 'sshPublicKey' | sed -n '/^ /{H;d};/sshPublicKey:/x;$g;s/\n *//g;s/sshPublicKey: //gp'
when: inventory_hostname in groups['nas']
when: inventory_hostname in groups['nas']