Skip to content
Snippets Groups Projects
Verified Commit 023e4f59 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

archbuild: Add systemd-swap to create swapfile

parent a4b9d88b
No related branches found
No related tags found
No related merge requests found
zswap[enabled]=1
zswap[compressor]=lz4
zswap[max_pool_percent]=20
zswap[zpool]=z3fold
swapf[size]=${sys[ram_size]}K
swapf[path]=/var/swap
---
- name: install archbuild
pacman: name=devtools,zsh,git,subversion,mercurial,bzr,xdelta3 state=present
pacman: name=systemd-swap,devtools,zsh,git,subversion,mercurial,bzr,xdelta3 state=present
- name: install archbuild scripts
copy: src={{ item }} dest=/usr/local/bin/{{ item }} owner=root group=root mode=0755
......@@ -30,9 +30,13 @@
- mkpkg@.timer
- mkpkg@.service
- name: install systemd-swap config
copy: src=systemd-swap.conf dest=/etc/systemd-swap.conf owner=root group=root mode=0644
- name: start and enable archbuild mounts
service: name={{ item }} enabled=yes state=started
with_items:
- systemd-swap.service
- var-lib-archbuild.mount
- var-lib-archbuilddest.mount
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment