...
 
Commits (2)
......@@ -86,6 +86,11 @@ Ce playbook réalise les opérations usuelles après une installation de machine
* Activation de l'accès par le LDAP;
* Installation de ZSH;
* Installation de Vim;
* Installation de Molly-guard;
* Installation de Htop;
* Installation de Mtr-tiny;
* Installation de Lnav;
* Installation de Nload;
* Installation d'apticron;
* Déploiement du motd Rézo.
......
......@@ -26,6 +26,21 @@
- name: Install vim
apt:
name: vim
- name: Install Molly-Guard
apt:
name: molly-guard
- name: Install Htop
apt:
name: htop
- name: Install Mtr
apt:
name: mtr-tiny
- name: Install Lnav
apt:
name: lnav
- name: Install Nload
apt:
name: nload
- include_role:
name: sendmail
- include_role:
......
- name: Install libnss-ldapd
apt:
name: libnss-ldapd,libpam-ldapd,nslcd
- name: Stop nscd service
service:
name: nscd
state: stopped
- name: Copy nsswitch.conf
copy:
dest: /etc/nsswitch.conf
src: nsswitch.conf
mode: 0640
register: nsswitch
- name: configure nslcd
template:
src: nslcd.conf.j2
dest: /etc/nslcd.conf
mode: 0640
register: nslcd
- name: Restart nslcd service
service:
name: nslcd
state: restarted
- name: Start nscd service
when: nsswitch.changed or nslcd.changed
- name: Restart nscd service
service:
name: nscd
state: started
when: nsswitch.changed or nslcd.changed
- name: Allow rezo group to ssh on the server
lineinfile:
dest: /etc/ssh/sshd_config
line: AllowGroups ssh rezo
register: allow_rezo
- name: Add root to the ssh group
user:
name: root
group: ssh
append: yes
register: root_ssh
- name: Restart ssh
service:
name: ssh
state: restarted
when: allow_rezo.changed or root_ssh.changed
- name: Create /home/ at first login
lineinfile:
dest: /etc/pam.d/common-session
......