Commit d4f93bd4 authored by nono's avatar nono 💻
Browse files

Modification des tâches pour les utilisateurices

parent 3ebe54cb
---
# tasks file for shell-lqdn
- include: packages.yml
- include: users.yml
- include: packages.yml # Ajoute les paquets par défaut pour les serveurs
- include: sshd.yml # Ajoute la configuration SSH
- include: motd.yml # Ajoute le MOTD SSH
- include: users.yml # Ajoute les utilisateurices
---
# This will set our motd
- name: Set MOTD
template:
src: /etc/ssh/motd.j2
dest: /etc/ssh/motd
owner: root
group: root
mode: 0644
......@@ -28,5 +28,3 @@
- tmux
# random
- neofetch
- cowsay
- sl
---
- name: Add user by building the authorized_keys2 file
template:
src: authorized_keys2.j2
dest: /root/.ssh/authorized_keys2
mode: 0600
# sshd_config module
---
- name: Activation de openSSH
systemd:
enabled: yes
name: sshd
- name: Configuration du fichier de configuration de openSSH
template:
src: sshd/sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: 0644
- name: Configuration de la bannière openSSH
template:
src: sshd/ssh_banner
dest: /etc/ssh/ssh_banner
owner: root
group: root
mode: 0644
......@@ -39,13 +39,8 @@
name: sudo
state: present
#Les comptes des services
# NB : Les comptes sont gérés par les rôles liés au service.
# - include: users/service.yml
# Les comptes admins
# - include: users/admin.yml
#Normal Users
- include: users/nono.yml
- include: users/oncela.yml
- name: Mise en place du fichier de clé SSH
template:
src: authorized_keys2.j2
dest: /root/.ssh/authorized_keys2
mode: 0600
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment