X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-local-phd.yml;h=597959fb7bb77c616de03c3b48b568d12b4b4f67;hb=17165a94ebea77fb5f8e5594c32485dfd242bf5b;hp=63e188b193c66b572a7c030dce49d64409f1f490;hpb=26d81517d2d679920a82ba54a48c86e1aee38cdc;p=ansible.git diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index 63e188b..597959f 100644 --- a/playbooks/debian/init-local-phd.yml +++ b/playbooks/debian/init-local-phd.yml @@ -1,5 +1,5 @@ - name: Update local user phd - hosts: localhost + hosts: "{{ hosts | default('localhost') }}" gather_facts: false vars: system_groups: root,adm,disk,cdrom,floppy,sudo,audio,www-data,video,plugdev,staff,users,Debian-exim,fuse,sambashare,bluetooth,davfs2,vboxusers,input @@ -19,13 +19,32 @@ user: name: phd groups: "{{ system_groups }}" - - name: Install X11 + - name: Install packages become: true apt: autoclean: yes autoremove: yes cache_valid_time: 3600 install_recommends: no - name: ['fvwm', 'rxvt-unicode', 'xorg'] + name: ['fvwm', 'hibernate', 'mpv', 'pavucontrol', 'pulseaudio', + 'rxvt-unicode', 'uswsusp', + 'x11-apps', 'x11-xserver-utils', 'xbindkeys', 'xinit', + 'xli', 'xloadimage', 'xorg', 'xscreensaver', 'xserver-xorg', + 'xserver-xorg-input-kbd', 'xserver-xorg-input-mouse', + 'xserver-xorg-input-synaptics', 'xserver-xorg-legacy', + 'xserver-xorg-video-vesa', 'xxkb', + ] state: latest update_cache: yes + - name: Extend fstab (add cgroups) + become: true + lineinfile: + path: /etc/fstab + regexp: "^none /sys/fs/cgroup cgroup memory 0 0$" + line: "none /sys/fs/cgroup cgroup memory 0 0" + - name: Extend fstab (add webdav.yandex.ru) + become: true + lineinfile: + path: /etc/fstab + regexp: "^https://webdav.yandex.ru /mnt davfs noauto,user 0 0$" + line: "https://webdav.yandex.ru /mnt davfs noauto,user 0 0"