]> 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 2a740e51e4b06ab01f86ae8d878d0c4fcfb63553..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
@@ -14,7 +14,7 @@
       become: true
       group:
         name: phd
-    - name: user phd
+    - name: Create user phd
       become: true
       user:
         name: phd
       apt:
         autoclean: yes
         autoremove: yes
+        cache_valid_time: 3600
         install_recommends: no
-        name: ['fvwm', 'rxvt-unicode', 'xorg']
-        purge: yes
+        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