1 - name: creation utilisateur visiteur
2 user: name=visiteur password='$6$061hiwJi$KhW6jTtBQUfZxzNWcgqRVA4dLHv9lda94czcHiSqCKhbdMXqXB/W2Im7Jg8TKOEuDuFotIr4ZLYQiD8EY8tZo.' shell='/bin/bash'
4 - name: check home.local
5 command: /bin/mv /home /home.local creates=/home.local
7 - name: change home dir local user
8 replace: dest=/etc/passwd regexp='/home/' replace='/home.local/'
10 - name: check ln home nfs
11 command: /bin/ln -s /net/nfs/home /home creates=/home
13 - name: check libnss-mysql-root
14 copy: src=libnss-mysql-root.cfg dest=/etc/libnss-mysql-root.cfg owner=root group=root mode=0600
16 - name: check libnss-mysql
17 copy: src=libnss-mysql.cfg dest=/etc/libnss-mysql.cfg owner=root group=root mode=0644
20 service: name=nscd state=restarted
22 - name: check getent passwd nagios
23 command: /usr/bin/getent passwd nagios
25 - name: check getent group bur
26 command: /usr/bin/getent group bur
28 - name: cacher les logins
29 command: /usr/lib/lightdm/lightdm-set-defaults -i true
30 # notify: reboot system
33 copy: src=idmapd.conf dest=/etc/idmapd.conf owner=root group=root mode=0644
35 - name: imprimante PDF
36 command: /usr/sbin/dpkg-reconfigure cups-pdf
38 - name: changement umask
39 lineinfile: dest=~/.profile regexp=^#umask line="umask 0022"