diff --git a/local.yml b/local.yml index 51466ef..e6db8a4 100644 --- a/local.yml +++ b/local.yml @@ -12,4 +12,5 @@ tasks: - include: tasks/users.yml - include: tasks/cron.yml - - include: tasks/packages.yml \ No newline at end of file + - include: tasks/packages.yml + - include: tasks/loritz-user.yml \ No newline at end of file diff --git a/tasks/files/Fond-loritz-Spiral-Betty_v2.jpg b/tasks/files/Fond-loritz-Spiral-Betty_v2.jpg new file mode 100644 index 0000000..d7e32b7 Binary files /dev/null and b/tasks/files/Fond-loritz-Spiral-Betty_v2.jpg differ diff --git a/tasks/files/lightdm.conf b/tasks/files/lightdm.conf new file mode 100644 index 0000000..627b308 --- /dev/null +++ b/tasks/files/lightdm.conf @@ -0,0 +1,4 @@ +[Seat:*] +autologin-guest=false +autologin-user=loritz +autologin-user-timeout=0 \ No newline at end of file diff --git a/tasks/loritz-user.yml b/tasks/loritz-user.yml new file mode 100644 index 0000000..9988c81 --- /dev/null +++ b/tasks/loritz-user.yml @@ -0,0 +1,33 @@ +- name: creation utilisateur courant + user: + name: loritz + password: loritz + +- name: copie fichier connection auto + copy: + src: files/lightdm.conf + dest: /etc/lightdm/lightdm.conf + owner: root + group: root + mode: 0644 + + + +- name: copy wallpaper file + copy: + src: files/Fond-loritz-Spiral-Betty_v2.jpg + dest: /usr/share/backgrounds/fond-loritz.jpg + owner: root + group: root + + - name: set wallpaper + become_user: loritz + dconf: + key: "/org/cinnamon/desktop/background/picture-uri" + value: "'file:///usr/share/backgrounds/fond-loritz.jpg'" + + - name: set wallpaper position + become_user: loritz + dconf: + key: "/org/cinnamon/desktop/background/picture-options" + value: "'zoom'" \ No newline at end of file