Skip to content
Snippets Groups Projects
Commit a2b836ba authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

archbuild: make tmpfs usage optional

parent 2b452cba
No related branches found
No related tags found
No related merge requests found
---
archbuild_fs: tmpfs
...@@ -30,6 +30,14 @@ ...@@ -30,6 +30,14 @@
notify: notify:
- daemon reload - daemon reload
- name: install archbuild unit
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
with_items:
- var-lib-archbuild.mount
notify:
- daemon reload
when: archbuild_fs == 'tmpfs'
- name: install archbuild user units - name: install archbuild user units
copy: src={{ item }} dest=/etc/systemd/user/{{ item }} owner=root group=root mode=0644 copy: src={{ item }} dest=/etc/systemd/user/{{ item }} owner=root group=root mode=0644
with_items: with_items:
...@@ -38,12 +46,18 @@ ...@@ -38,12 +46,18 @@
- name: install systemd-swap config - name: install systemd-swap config
copy: src=swap.conf dest=/etc/systemd/swap.conf owner=root group=root mode=0644 copy: src=swap.conf dest=/etc/systemd/swap.conf owner=root group=root mode=0644
when: archbuild_fs == 'tmpfs'
- name: start and enable archbuild mounts - name: start and enable archbuild mounts
service: name={{ item }} enabled=yes state=started service: name={{ item }} enabled=yes state=started
with_items: with_items:
- systemd-swap.service - systemd-swap.service
- var-lib-archbuild.mount - var-lib-archbuild.mount
when: archbuild_fs == 'tmpfs'
- name: start and enable archbuilddest mount
service: name={{ item }} enabled=yes state=started
with_items:
- var-lib-archbuilddest.mount - var-lib-archbuilddest.mount
- name: create archbuilddest - name: create archbuilddest
......
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