mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-02 15:53:06 +02:00
upt playbook
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
- hosts: raspberry
|
||||
- hosts: odroid_cluster
|
||||
name: Install omv
|
||||
become: true
|
||||
tasks:
|
||||
@ -65,7 +65,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/nslcd.conf
|
||||
regexp: "^uri ldap.*"
|
||||
line: "uri ldaps://ldap-server.loc/"
|
||||
line: "uri ldap://192.168.77.106:389/"
|
||||
|
||||
|
||||
- name: Reconfigure ldap base
|
||||
@ -84,7 +84,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/nslcd.conf
|
||||
regexp: "^#bindpw"
|
||||
line: "bindpw l4c1j4yd33Du5lo"
|
||||
line: "bindpw {{ ldap_admin_password }}"
|
||||
# - name: Reconfigure ldap base
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/nslcd.conf
|
||||
@ -118,7 +118,11 @@
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: "^#AuthorizedKeysCommandUser *"
|
||||
line: "AuthorizedKeysCommandUser root"
|
||||
|
||||
- name: Create a directory LDAP if it does not exist
|
||||
ansible.builtin.file:
|
||||
path: /etc/ldap/
|
||||
state: directory
|
||||
mode: '0755'
|
||||
- name: Creating a file with content
|
||||
copy:
|
||||
dest: "/etc/ldap/ldap.conf"
|
||||
|
Reference in New Issue
Block a user