We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60d045 commit 6090eefCopy full SHA for 6090eef
tasks/setup/systemd.yml
@@ -14,10 +14,12 @@
14
- minecraft.socket
15
notify:
16
- restart Minecraft
17
+ register: systemd_service_config
18
19
- name: reload systemd
20
command: systemctl daemon-reload
21
become: true
22
+ when: systemd_service_config.changed
23
24
- name: configure console directory
25
template:
@@ -27,6 +29,12 @@
27
29
group: root
28
30
mode: '0644'
31
32
+- name: check if tmpfile exists
33
+ stat:
34
+ path: /etc/tmpfiles.d/{{ minecraft_service_name }}.conf
35
+ register: minecraft_tmpfile
36
+
37
- name: create console directory
38
command: systemd-tmpfiles --create /etc/tmpfiles.d/{{ minecraft_service_name }}.conf
39
40
+ when: minecraft_tmpfile.stat.islnk
0 commit comments