X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-local-phd.yml;h=6338a05bdca619b980e19b8aa0940f1b200d57e3;hb=02dcbd6cdc41e34c54e185881bfba68b345722f4;hp=d71f24f0a28c1e150dcaa62e1f383697444c8d0c;hpb=dcf965cb65e4c89e7db4f86453dfcbf9af9a967a;p=ansible.git diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index d71f24f..6338a05 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 @@ -14,8 +14,61 @@ become: true group: name: phd - - name: user phd + - name: Create user phd become: true user: name: phd groups: "{{ system_groups }}" + - name: Install packages + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: [ + # System + 'acpi', 'fuse-convmvfs', 'curlftpfs', 'hibernate', 'ntfs-3g', + 'pinentry-gtk2', # for GnuPG + 'sshfs', 'uswsusp', + # Audio + 'audacious', 'pavucontrol', 'pulseaudio', + # Browsers + 'chromium', + 'libdbus-1-3', # for Firefox + # Docs and texts + 'docutils-doc', 'fbreader', 'qpdfview', 'sqlite3-doc', + 'vim-doc', 'vim-gtk3', + # Image handling + 'imagemagick', 'imagemagick-doc', + 'xli', 'xloadimage', + # Instant messaging + 'pidgin', 'pidgin-awayonlock', 'pidgin-encryption', + 'pidgin-extprefs', 'pidgin-mra', 'pidgin-openpgp', 'pidgin-otr', + 'pidgin-plugin-pack', 'pidgin-privacy-please', 'pidgin-skype', + # Video + 'mpv', + # X Windows + 'fvwm', 'gxmessage', 'rxvt-unicode', + 'x11-apps', 'x11-xserver-utils', 'xbindkeys', 'xclip', 'xinit', + 'xsel', '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: Mount cgroups + mount: + path: /sys/fs/cgroup + src: none + opts: memory + state: mounted + fstype: cgroup + - name: Mount webdav.yandex.ru + mount: + path: /mnt + src: https://webdav.yandex.ru + opts: noauto,user + state: present + fstype: davfs