ansible/roles/container/tasks/main.yml

16 lines
509 B
YAML

- name: Write pacman.conf
copy: src=pacman.conf dest=/etc/pacman.conf mode=0644
- name: update cache htop
pacman: update_cache=yes
- name: install htop
pacman: name=htop state=present
- 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
- mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present