diff options
-rw-r--r-- | roles/workstation/tasks/_archlinux.yml | 49 |
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 |