Compare commits

...

2 commits

Author SHA1 Message Date
Alexis Ben Miloud--Josselin bc3656dd4c evolinux-base: retirer tâche traitée
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2635|10|2625|6|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/371//ansiblelint">Evolix » ansible-roles » unstable #371</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-10-11 12:07:05 +02:00
Alexis Ben Miloud--Josselin a80076a5ea evolinux-base: Corriger autorisation pour evolinux_user
Cas configuration SSH séparée. Ticket #74636.
2023-10-11 10:02:34 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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'
@ -44,6 +45,5 @@
- ansible.builtin.meta: flush_handlers
# TODO vérifier présence de Include /etc/ssh/sshd_config.d/*.conf
# TODO si allowusers et allowgroups, ajouter utilisateur aux deux
# TODO si allowgroups, ajouter groupe de lutilisateur