diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index ab0eec14850cce27dcbc348fab9e20ab5a71cc51..ab693bf045a12ae4ac4938ce99d6cbabaab59c7e 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -11,9 +11,11 @@ - name: install smart pacman: name=smartmontools state=present + when: "'hcloud' not in group_names" - name: start and enable smart - service: name=smartd enabled={{"no" if 'hcloud' in group_names else "yes"}} state={{"stopped" if 'hcloud' in group_names else "started"}} + service: name=smartd enabled="yes" state="started" + when: "'hcloud' not in group_names" - name: install mlocate pacman: name=mlocate state=present