Update to 2022-11-03 11:00

This commit is contained in:
Daniel Berteaud 2022-11-03 11:00:08 +01:00
parent adcb5de4f1
commit 724cb5641c
5 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
# Version to deploy
n8n_version: 0.197.1
n8n_version: 0.200.0
# Root directory where n8n will be installed
n8n_root_dir: /opt/n8n
# User account under which n8n will run

View File

@ -5,3 +5,7 @@
name: "{{ (samba_role == 'dc' or samba_role == 'rodc') | ternary('samba','smb') }}"
state: reloaded
- name: reload winbind
service: name=winbind state=reloaded
when: samba_role == 'member'

View File

@ -85,7 +85,9 @@
dest: /etc/samba/smb.conf
- src: sysconfig.j2
dest: /etc/sysconfig/samba
notify: reload samba
notify:
- reload samba
- reload winbind
tags: samba
- name: Check if there's a shares.conf snippet

View File

@ -1,3 +1,9 @@
#!/bin/sh
set -eo pipefail
{% if samba_role in ['dc', 'rodc'] %}
rm -rf /home/lbkp/samba
{% else %}
echo "Samba not running as a domain controller, no dump to remove"
{% endif %}

View File

@ -2,6 +2,7 @@
set -eo pipefail
{% if samba_role in ['dc', 'rodc'] %}
LDB_MODULES_PATH=/usr/lib64/samba/ldb
export LDB_MODULES_PATH
@ -20,3 +21,6 @@ for LDIF in $(find /var/lib/samba/private/ -type f -name \*.ldb); do
done
# Also take a more standard offline backup
samba-tool domain backup offline --targetdir=/home/lbkp/samba/offline/
{% else %}
echo "Samba isn't running as a domain controller, nothing to backup"
{% endif %}