fix ansible-lint
This commit is contained in:
@@ -43,14 +43,14 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ seafile_mirror_dir }}"
|
path: "{{ seafile_mirror_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
- name: Ensure Seafile mirror configuration exists
|
- name: Ensure Seafile mirror configuration exists
|
||||||
template:
|
template:
|
||||||
src: seafile_mirror.conf.yaml.j2
|
src: seafile_mirror.conf.yaml.j2
|
||||||
dest: "{{ seafile_mirror_dir }}/seafile_mirror.conf.yaml"
|
dest: "{{ seafile_mirror_dir }}/seafile_mirror.conf.yaml"
|
||||||
mode: 0600
|
mode: "0600"
|
||||||
|
|
||||||
- name: Ensure cron entry for Seafile mirror service
|
- name: Ensure cron entry for Seafile mirror service
|
||||||
cron:
|
cron:
|
||||||
@@ -63,19 +63,19 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ seafile_local_user_info.home }}/.config/systemd/user/"
|
path: "{{ seafile_local_user_info.home }}/.config/systemd/user/"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
||||||
- name: Ensure systemd service file is present
|
- name: Ensure systemd service file is present
|
||||||
template:
|
template:
|
||||||
src: seaf-daemon.service.j2
|
src: seaf-daemon.service.j2
|
||||||
dest: "{{ seafile_local_user_info.home }}/.config/systemd/user/seaf-daemon.service"
|
dest: "{{ seafile_local_user_info.home }}/.config/systemd/user/seaf-daemon.service"
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
|
||||||
- name: Ensure Seafile config dir exists
|
- name: Ensure Seafile config dir exists
|
||||||
file:
|
file:
|
||||||
path: "{{ seafile_local_user_info.home }}/config"
|
path: "{{ seafile_local_user_info.home }}/config"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
||||||
- name: Ensure Seafile config dir is initialised
|
- name: Ensure Seafile config dir is initialised
|
||||||
command:
|
command:
|
||||||
@@ -91,6 +91,7 @@
|
|||||||
- name: Ensure systemd lingering is enabled for user {{ seafile_local_user.user }}
|
- name: Ensure systemd lingering is enabled for user {{ seafile_local_user.user }}
|
||||||
command: loginctl enable-linger {{ seafile_local_user.user }}
|
command: loginctl enable-linger {{ seafile_local_user.user }}
|
||||||
become: false
|
become: false
|
||||||
|
changed_when: false
|
||||||
when: not seafile_local_user_lingering.stat.exists
|
when: not seafile_local_user_lingering.stat.exists
|
||||||
|
|
||||||
- name: Ensure systemd service is running and enabled
|
- name: Ensure systemd service is running and enabled
|
||||||
@@ -100,4 +101,4 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
scope: user
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user