Skip to content
Snippets Groups Projects
Unverified Commit b4c97002 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

common: override smartd.service with ConditionVirtualization=no

This is needed for the role to work in containers. The option will also
be applied upstream, see the upstream ticket:
https://github.com/smartmontools/smartmontools/issues/62
parent 37d6326c
No related branches found
No related tags found
1 merge request!58Small changes for testing some roles in local containers
[Unit]
ConditionVirtualization=no
......@@ -23,8 +23,16 @@
pacman: name=smartmontools state=present
when: "'hcloud' not in group_names"
# override smartd.service with ConditionVirtualization=no
# this should appear in the next upstream release, see https://github.com/smartmontools/smartmontools/issues/62
- name: create drop-in directory for smartd.service
file: path=/etc/systemd/system/smartd.service.d state=directory owner=root group=root mode=0755
- name: install drop-in snippet for smartd.service
copy: src=smartd-override.conf dest=/etc/systemd/system/smartd.service.d/override.conf owner=root group=root mode=0644
- name: start and enable smart
service: name=smartd enabled=yes state=started
service: name=smartd enabled=yes state=started daemon_reload=yes
when: "'hcloud' not in group_names"
- name: start and enable btrfs scrub timer
......
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