aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-02-20 18:29:05 +0100
committerbinary <me@rgoncalves.se>2021-02-20 18:29:05 +0100
commit9773bdd293854c1ae3504373760dda3e08088bf7 (patch)
treec8f57446b1399e46e205342a5f4020a490cfe01d /roles/workstation
parent8913825485d687e6b07454d7bb226a8b5d909433 (diff)
downloadinfrastructure-9773bdd293854c1ae3504373760dda3e08088bf7.tar.gz
Add archlinux installation
Diffstat (limited to 'roles/workstation')
-rw-r--r--roles/workstation/tasks/_archlinux.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/roles/workstation/tasks/_archlinux.yml b/roles/workstation/tasks/_archlinux.yml
new file mode 100644
index 0000000..06110df
--- /dev/null
+++ b/roles/workstation/tasks/_archlinux.yml
@@ -0,0 +1,49 @@
+
+# workstation ~~ roles/workstation/tasks/_archlinux.yml
+# init archlinux based workstation
+
+---
+
+- name: refresh packages list
+ shell: pacman -Sy
+ tags: pkgs
+
+- name: install packages
+ shell: |
+ pacman --noconfirm --needed -S {{ item | join(" ") }}
+ loop:
+ - "{{ pkgs_common }}"
+ - "{{ pkgs_archlinux }}"
+ register: out
+ tags: pkgs
+
+- name: packages installation output
+ debug:
+ msg: |
+ {% for item in out.results %}
+ - {{ item.cmd }}
+ {% for type in ["stdout_lines", "stderr_lines"] if item[type] %}
+ -- {{ type }}
+ {% for line in item[type] %}
+ --- {{ line }}
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+ when: out is defined
+
+- name: check doas installation
+ stat: path=/usr/bin/doas
+ register: doas
+
+- name: ensure Xorg subdirectory for configuration exists
+ file:
+ path: /etc/X11/xorg.conf.d
+ owner: root
+ mode: 0644
+ state: directory
+
+- name: start and enable pcscd service
+ service:
+ name: pcscd
+ state: started
+ enabled: true
remember that computers suck.