diff --git a/tasks/main.yml b/tasks/main.yml index 9a1c152..590f639 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -43,14 +43,14 @@ file: path: "{{ seafile_mirror_dir }}" state: directory - mode: 0755 + mode: "0755" recurse: true - name: Ensure Seafile mirror configuration exists template: src: seafile_mirror.conf.yaml.j2 dest: "{{ seafile_mirror_dir }}/seafile_mirror.conf.yaml" - mode: 0600 + mode: "0600" - name: Ensure cron entry for Seafile mirror service cron: @@ -63,19 +63,19 @@ file: path: "{{ seafile_local_user_info.home }}/.config/systemd/user/" state: directory - mode: 0755 + mode: "0755" - name: Ensure systemd service file is present template: src: seaf-daemon.service.j2 dest: "{{ seafile_local_user_info.home }}/.config/systemd/user/seaf-daemon.service" - mode: 0644 + mode: "0644" - name: Ensure Seafile config dir exists file: path: "{{ seafile_local_user_info.home }}/config" state: directory - mode: 0755 + mode: "0755" - name: Ensure Seafile config dir is initialised command: @@ -91,6 +91,7 @@ - name: Ensure systemd lingering is enabled for user {{ seafile_local_user.user }} command: loginctl enable-linger {{ seafile_local_user.user }} become: false + changed_when: false when: not seafile_local_user_lingering.stat.exists - name: Ensure systemd service is running and enabled @@ -100,4 +101,4 @@ enabled: true daemon_reload: true scope: user - become_method: machinectl # in order to get XDG_RUNTIME_DIR and user's DBUS session + become_method: community.general.machinectl # in order to get XDG_RUNTIME_DIR and user's DBUS session