ansible-role-zram/tasks/main.yml
Adrien a78f8c2284
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint
2020-06-01 01:05:39 +02:00

13 lines
697 B
YAML

---
- name: Install script zram-swap.sh
copy: src=files/usr/local/sbin/zram-swap.sh dest=/usr/local/sbin/zram-swap.sh owner=root group=root mode=0755
- name: Install service zram-config.service
copy: src=files/etc/systemd/system/zram-config.service dest=/etc/systemd/system/zram-config.service owner=root group=root mode=0644
when: ansible_service_mgr == "systemd"
- name: Install zram-config link service in init.d
file: src=/usr/local/sbin/zram-swap.sh dest=/etc/init.d/zram-config owner=root group=root state=link
when: ansible_service_mgr != "systemd"
- name: start zram-config service
service: name=zram-config enabled=yes state=started
# when: ansible_service_mgr == "systemd"