]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-local-phd.yml
Feat(init-local-phd): Allow to run on other host(s)
[ansible.git] / playbooks / debian / init-local-phd.yml
index d71f24f0a28c1e150dcaa62e1f383697444c8d0c..1b24d801a94cc009836cd9d8cf908eb122be138b 100644 (file)
@@ -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
       become: true
       group:
         name: phd
-    - name: user phd
+    - name: Create user phd
       become: true
       user:
         name: phd
         groups: "{{ system_groups }}"
+    - name: Install X11
+      become: true
+      apt:
+        autoclean: yes
+        autoremove: yes
+        cache_valid_time: 3600
+        install_recommends: no
+        name: ['fvwm', 'pulseaudio', 'rxvt-unicode',
+               '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