evolix-base/root: fix module used

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-10-09 17:12:15 +02:00
parent c673ed10c6
commit 0c9b55e5e1
2 changed files with 2 additions and 1 deletions

View file

@ -82,6 +82,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* packweb-apache,nagios-nrpe: add missing task and config for PHP 8.2 container
* 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
### Removed

View file

@ -112,7 +112,7 @@
- ansible_distribution_major_version is version('12', '>=')
- name: disable SSH access for root (Debian >= 12)
ansible.builtin.replace:
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config.d/z-evolinux-defaults.conf
line: "PermitRootLogin no"
create: yes