From f4114f3ea5bc85d84701589ecac2a69fbe903b83 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 22 Aug 2023 16:16:00 +0200 Subject: [PATCH] upt playbook --- playbooks/00_install_ldap_client.yml | 29 ++++++++++++++++++++++++++-- playbooks/install_morefine.yaml | 1 + 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/playbooks/00_install_ldap_client.yml b/playbooks/00_install_ldap_client.yml index 8122a19..64c613b 100644 --- a/playbooks/00_install_ldap_client.yml +++ b/playbooks/00_install_ldap_client.yml @@ -99,7 +99,7 @@ ansible.builtin.service: name: nslcd.service state: restarted - + - name: Creating a file with content copy: dest: "/usr/local/bin/fetchSSHKeysFromLDAP" @@ -118,4 +118,29 @@ path: /etc/ssh/sshd_config regexp: "^#AuthorizedKeysCommandUser *" line: "AuthorizedKeysCommandUser root" - \ No newline at end of file + + - name: Creating a file with content + copy: + dest: "/etc/ldap/ldap.conf" + content: | + # + # LDAP Defaults + # + + # See ldap.conf(5) for details + # This file should be world readable but not world writable. + + BASE dc=sectorq,dc=eu + URI ldap://192.168.77.106:389 + + #SIZELIMIT 12 + #TIMELIMIT 15 + #DEREF never + + # TLS certificates (needed for GnuTLS) + TLS_CACERT /etc/ssl/certs/ca-certificates.crt + + - name: Restart sshd service + ansible.builtin.service: + name: sshd.service + state: restarted \ No newline at end of file diff --git a/playbooks/install_morefine.yaml b/playbooks/install_morefine.yaml index f156d94..b605a64 100644 --- a/playbooks/install_morefine.yaml +++ b/playbooks/install_morefine.yaml @@ -21,6 +21,7 @@ - autofs - ethtool - python3-pip + - telegram-desktop - name: Download gpg key for code get_url: url: https://packages.microsoft.com/keys/microsoft.asc