Merge pull request #460 from toadjaune/fix-stat-symlink
Fix systemd stat symlink
This commit is contained in:
commit
5889348119
1 changed files with 4 additions and 4 deletions
|
|
@ -98,7 +98,7 @@
|
|||
file:
|
||||
path: "{{ sysd_script }}"
|
||||
state: absent
|
||||
when: not sysd_stat_result.stat.islnk
|
||||
when: sysd_stat_result.stat.exists and not sysd_stat_result.stat.islnk
|
||||
|
||||
- name: Create a symbolic link to the default systemd location to the first instance running on this host
|
||||
become: yes
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
state: link
|
||||
src: "{{ instance_sysd_script }}"
|
||||
path: "{{ sysd_script }}"
|
||||
when: not sysd_stat_result.stat.islnk
|
||||
when: sysd_stat_result.stat.exists and not sysd_stat_result.stat.islnk
|
||||
notify:
|
||||
- reload systemd configuration
|
||||
- restart elasticsearch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue