From 9773bdd293854c1ae3504373760dda3e08088bf7 Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 20 Feb 2021 18:29:05 +0100 Subject: Add archlinux installation --- roles/workstation/tasks/_archlinux.yml | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 roles/workstation/tasks/_archlinux.yml (limited to 'roles/workstation/tasks/_archlinux.yml') 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 -- cgit v1.2.3