- name: Write pacman.conf copy: src=pacman.conf dest=/etc/pacman.conf mode=0644 - name: Mask services file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link with_items: masked_services - name: Stop services service: name={{ item }} state=stopped enabled=no with_items: masked_services - name: install essential packages pacman: name={{ item }} state=present with_items: - htop - strace - cacert-dot-org - the_silver_searcher - mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present