From a80076a5ea3c12bc4e1200a7377e060b285a8800 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Wed, 11 Oct 2023 09:55:56 +0200 Subject: [PATCH] evolinux-base: Corriger autorisation pour evolinux_user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cas configuration SSH séparée. Ticket #74636. --- CHANGELOG.md | 1 + evolinux-base/tasks/ssh.included-files.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 177c3dc1..86163086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * postfix: add missing `localhost.$mydomain` to `mydestination` * redis: replace erroneous `ini_file` module for Munin config, fix dedicated Munin config filename (z-XXX). * evolinux-base: use lineinfile instead of replace under root task +* evolinux-base: Corriger autorisation pour evolinux_user ### Removed diff --git a/evolinux-base/tasks/ssh.included-files.yml b/evolinux-base/tasks/ssh.included-files.yml index bb3538d6..c21fdd20 100644 --- a/evolinux-base/tasks/ssh.included-files.yml +++ b/evolinux-base/tasks/ssh.included-files.yml @@ -36,6 +36,7 @@ - name: "Add AllowUsers sshd directive for current user" ansible.builtin.lineinfile: dest: /etc/ssh/sshd_config.d/allow_evolinux_user.conf + create: yes line: "AllowUsers {{ logname.stdout }}" insertafter: 'Subsystem' validate: '/usr/sbin/sshd -t -f %s'